Constructor
new FedAuthPropertiesBuilder(appName, loginUrl, logoutUrl, loginSuccessUrl, loginFailureUrl)
Parameters:
Name | Type | Description |
---|---|---|
appName |
string | Application name |
loginUrl |
string | Fed auth login end point. |
logoutUrl |
string | Fed auth logout end point. |
loginSuccessUrl |
string | End point to which server redirects after successful login. |
loginFailureUrl |
string | End point to which server redirects after unsuccessful login. |
- Source:
Extends
Methods
appName(appName) → {RemoteAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
appName |
String | Application name |
- Inherited From:
- Source:
Returns:
build() → {Object}
- Overrides:
- Source:
Returns:
validate and return properties collected.
- Type
- Object
confirmLogoutAutomatically(automatic) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
automatic |
boolean | whether to confirm the logout automatically when presented with a logout confirmation screen from the server. |
- Source:
Returns:
confirmLogoutButtonId(buttonId) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
buttonId |
string | DOM id of the logout confirmation button. Used when FedAuthPropertiesBuilder#confirmLogoutAutomatically is turned on. |
- Source:
Returns:
customAuthHeaders(headers) → {RemoteAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
headers |
Object.<string, string> | any custom headers. These are returned along with other authentication headers in RemoteAuthenticationFlow#getHeaders() |
- Inherited From:
- Source:
Returns:
enableWkWebView(enable) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
enable |
boolean | if WKWebView should be enabled. Applicable only for iOS. Note: App should install cordova-plugin-wkwebview-engine when using this. |
- Source:
Returns:
idleTimeOutInSeconds(timeout) → {RemoteAuthPropertiesBuilder}
Deprecated: This is not applicable for all remote authentications. Use method available in builder subclasses where applicable.
Parameters:
Name | Type | Description |
---|---|---|
timeout |
number | seconds after which which idle timeout should kick in when user is idle. |
- Inherited From:
- Deprecated:
- This is not applicable for all remote authentications. Use method available in builder subclasses where applicable.
- Source:
Returns:
loginFailureUrl(url) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | End point to which server redirects after unsuccessful login. |
- Source:
Returns:
loginSuccessUrl(url) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | End point to which server redirects after successful login. |
- Source:
Returns:
loginUrl(url) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | Fed auth login end point. |
- Source:
Returns:
logoutFailureUrl(url) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | End point to which server redirects after unsuccessful logout. Used along with logout confirmation screen usecase. |
- Source:
Returns:
logoutSuccessUrl(url) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | End point to which server redirects after successful logout. Used along with logout confirmation screen usecase. |
- Source:
Returns:
logoutTimeOutInSeconds(timeout) → {RemoteAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
timeout |
number | specifiy timeout before which ongoing logout attempt will be aborted. |
- Inherited From:
- Source:
Returns:
logoutUrl(url) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
url |
string | Fed auth logout end point. |
- Source:
Returns:
parseTokenRelayResponse(allow) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
allow |
boolean | if relay response token needs to be parsed. Used in case of SAML flows. |
- Source:
Returns:
percentageToIdleTimeout(percentage) → {RemoteAuthPropertiesBuilder}
Deprecated: This is not applicable for all remote authentications. Use method available in builder subclasses where applicable.
Parameters:
Name | Type | Description |
---|---|---|
percentage |
number | percentage of idle timeout before which timeout callback should be invoked. |
- Inherited From:
- Deprecated:
- This is not applicable for all remote authentications. Use method available in builder subclasses where applicable.
- Source:
Returns:
put(key, value) → {Builder}
Convenience method to add key value pairs of auth settings to properties.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Authentication property key |
value |
string | Authentication property value |
- Inherited From:
- Source:
Returns:
- Type
- Builder
sessionActiveOnRestart(active) → {FedAuthPropertiesBuilder}
This does not work for normal FedAuth cases. This is applicable for SAML kind of cases where FedAuthPropertiesBuilder#parseTokenRelayResponse is turned on. In this context, this parameter can be used for turning on access token reuse over app restarts. With this turned on, when app is restarted, a user trying to login won't be prompted for credentials, if there is a valid JWT token.
Parameters:
Name | Type | Description |
---|---|---|
active |
boolean | Whether to preserve login across restarts. |
- Source:
Returns:
sessionTimeOutInSeconds(timeout) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
timeout |
number | set to the same value as configured in the fed auth server. After these many seconds timeout callback will be invoked. Note: This does not trigger any session timeout on the server. That configuration is controlled by the server. The effect of setting this is only to remove cookies after such time when server session would have time out. |
- Overrides:
- Source:
Returns:
timeoutCallback(callback) → {FedAuthPropertiesBuilder}
Parameters:
Name | Type | Description |
---|---|---|
callback |
RemoteAuthPropertiesBuilder~timeoutCallback | Callback to handle timeout notifications. |
- Source: