Issue for sso login via Azure AD

0
Hi team,   When i login into application via SSO , i am able to login first time successfully . After that , i am clicking on Sign Out button , it is login.html page of the application. When trying to login again via SSO , I am not able to login via SSO , as it is not redirecting me to /index.html page , instead is redirecting me to same /login.html page.   If I am clearing the cache , i am able to login again via SSO .    Please suggest me solution , if anyone have encountered this type of issue.  
asked
1 answers
0

Hi Apurva,

 

There are several constants in the SAML module that control this behavior.  Sounds like you need to adjust the DefaultLogoutPage constant to target your desired page when logging out.  For example, you can set it to /SSO/ which will start the login process automatically or you can use index.html.  I included the part from the SAML documentation below that explains this as well as a link to the documentation.

 

  • DefaultLoginPage – You can specify a different login page here for when the login process fails. When the end-user cannot be authenticated in the external IdP, a button will appear, and by clicking this button, they will be redirected to the specified login page. If this is left blank, an unauthenticated user will be redirected to /login.html.

  • DefaultLogoutPage – Removing the sign-out button is recommended, but if you choose to keep it, the end-user will be redirected to a page. You can choose where the end-user is redirected to (for example, back to /SSO/ or your login.html page). Every user signed in via SAML is redirected to this location when they are logged out.

  • SSOLandingPage – Set this if you redirect the index.html to log into your app automatically. See Using SSOLandingPage for further information about this.

SAML | Mendix Documentation

answered