The Liquit.Login function allows you to connect to the Application Workspace API with provided credentials. You can specify the identity source, username and password required to authenticate to the Application Workspace.
Request parameters
You need to specify at least a username and password to authenticate to the Application Workspace.
The following parameters are available for the API:
Name | Description | Default value |
---|---|---|
identitySource | This is the name of the identity source to authenticate the user with. Leave null for default identity source. | null |
username | The login username used to authenticate the user. | null |
password | The login password used to authenticate the user. | null |
callback | Invoked after someone tries to log in. If the login is successful, a token is generated. If the login is not successful, the response will contain an object called "fault" with a description of what caused the failure. | null |
Example
Liquit.Login({
identitySource: 'LOCAL',
username : 'admin',
password: 'password',
callback: function (token, fault) {
// Check if the request failed.
if (fault != null) {
alert('Error ' + fault.code + ': ' + fault.message);
return;
}
// Call Liquit.Applications.List API to retrieve all available applications for the logged-in user.
}
});