×
Maintenance Notice: labkey.org will be offline at 6:30 PM Pacific Time on Thursday, May 9th 2024 for maintenance. The estimated downtime should be no more than one hour. Please save your work before this time. We apologize for any inconvenience.
In cases where an external web application authenticates a user and redirects to a LabKey Server instance, you can use the API loginApi.api.

In its simplest form you can post JSON like the following to login-loginApi.api:

{
email: "myemail@test.test",
password: "xxxxxxx"
}

The response JSON will indicate success or failure, and provide helpful details in the success case.

A more complex use case is shown by the default LabKey login page, and its handler JS file below:

Related Topics

Was this content helpful?

Log in or register an account to provide feedback


previousnext
 
expand allcollapse all