options |
Object |
The configuration object to use
The options object is a JSON object, here an example.
{
module: "DataStore", // optional
service: "ldapService", // optional
username: 'usernameField', // optional
password: 'passwordField', // optional
headers: myHeaders, // optional
realm: "/", // optional
gotoURL: "https://app.example.com:8080/mypath", // optional
gotoOnFail: "https://app.example.com:8080/failed", // optional
}
Properties
module |
String |
<optional>
|
OpenAM realm default |
The Authentication module to use in the left side of the login box. |
service |
String |
<optional>
|
OpenAM realm default |
The Authentication service chain to use in the left side of the login box. Notice that service takes precedence over module. |
username |
String |
<optional>
|
'username' |
The id of the field that contains the username in the form. Either username and password or headers must be specified. |
password |
String |
<optional>
|
'password' |
The id of the field that contains the password in the form. Either username and password or headers must be specified. |
headers |
Object |
|
|
Object containing the credentials passed as headers |
realm |
String |
<optional>
|
The one configured in openam.js |
Realm where the authentication will take place |
headers |
Object |
<optional>
|
|
Object containing the credentials passed as headers. Either username and password or headers must be specified. |
gotoURL |
String |
<optional>
|
Current page |
The URL to go to after a successful authentication. |
gotoOnFail |
String |
<optional>
|
Current page |
The URL to go to after an authentication event has failed. |
|