Created on 27 August 2021
icon_unfollowing
Login to follow
automatic-login

How To: Automatic Login

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 27 August 2021 by 
automatic-login

How To: Automatic Login

Documentation
1.0.0

Step 1: Get the credentials


The login page seems the obvious choice to trigger the automatic login.


For the OnReady of the login page, check to see if there are any stored password credentials associated with this domain. If a credential is retrieved, you can pass the username and password to the login method.

And the result is you get automatically logged in every time you visit the page.



In this example I’ve used the “Optional” (user) mediation, so if you are like me and have multiple users for an app you get prompted to choose which one you want to login with:


Step 2: On logout prevent automatic login

On the client logout make sure to trigger the Prevent Silent Access so that the user does not get logged in again.


Step 3: Store the credentials after user registration or successful login

To store the credentials it is recommended to trigger this right after the registration of the user.


Something like this:




Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 2 dependencies