Remember-Me settings and configuration for the Loginapp REST API
Example template as a starting point
The Airlock IAM configuration template Demo configuration features a complex authentication flow using the Remember-Me feature for the here described use-case.
The demo configuration shows how to configure many IAM features – you may want to check it out.
Global Remember-Me settings
Only one Remember-Me cookie can be stored in a browser/device for all authentication flows. The Remember-Me steps may be used in several flows and grant different sets of tags but they all refer to the same cookie and the same settings. See also Remember-Me limitations.
The global Remember-Me settings for all flow steps are configured here:
Loginapp >> Applications and Authentication >> Remember-Me Settings
Configuration hints for selected configuration properties:
Setting | Configuration hints |
---|---|
Repository |
|
Logout Behaviour | Options:
|
Lifetime, Idle Timeout | Lifetime vs. idle timeout:
Both settings allow values in days, hours, or a combination of both. |
Cookie Name |
|
Cookie Domain, Cookie Path |
|
For further information on configuration properties, please refer to the documentation in the Config Editor.
Flow step configuration
The Remember-Me feature offers two flow steps:
- Remember-Me User Identifying Step
- Remember-Me Token Generating Step
They automatically use the global Remember-Me settings (see above).
The steps need to be placed carefully and in the correct order to work securely and as desired. The following table gives some hints for known use cases. If using the step for other use cases, consider carefully where the steps are placed in the flow.
Flow step name and purpose | Use case | Position within authentication flow |
---|---|---|
Remember-Me User Identifying Step – this flow step checks the Remember-Me cookie. |
|
|
|
| |
Remember-Me Token Generating Step – this flow step generates the cookie with the Remember-Me token. |
| The step position within the flows is relevant for the overall security:
|
Other Remember-Me-related settings
Setting | Supportive information |
---|---|
Consistency listener |
|
Remember-Me token migration | To make the Remember-Me User Identifying Step accept cookies that have been issued by the JSP-Loginapp's Remember-Me feature, use the property JSP Remember-Me Settings: it references the old Loginapp's Remember-Me settings so it can extract and decode its Remember-Me cookies. |
Remember-me Token Reset Step | The Remember-me Token Reset Step may be used to log out all remembered browsers/devices. It is, for example, good practice to log out all remembered browsers/devices after the end-user sets a new password (password reset and voluntary password change). |
Additional information and links
- Conceptual information and examples: Remember-Me in authentication flows
- Dynamic step activation (DSA) - flow concept
- Loginapp UI configuration: Remember-Me configuration
- Adminapp configuration: Remember-Me configuration in Adminapp
- Service container configuration: Remember-Me token cleanup task configuration
- Airlock Gateway: Passthrough cookie configuration in Application settings