Forum Discussion

VarunGrazitti's avatar
10 years ago

SSO Modal Login

Is it possible to use the modal login in case of SSO? How?

  • FilipK's avatar
    FilipK
    Lithium Alumni (Retired)

    Hi VarunGrazitti ,

     

    In case of SSO, login and registration pages are usually not hosted on Lithium side but live on the identity provider side (the user is redirected to an external site where he logs in). Therefore the out-of-the-box modal dialogs we have for Lithium login/registration are not applicable for SSO.

     

    In case of a custom SSO solution, you could build your own login page with a custom component that uses a modal dialog - see here.  This would however require your custom component to have the code for user authentication.

     

    Hope this helps!

    • FilipK - How would we have the SSO authentication code inside the custom component? The authetntication would be done on the identity provider side, so how could we host something to authenticate on the community?

       

      Thanks.

       

      • FilipK's avatar
        FilipK
        Lithium Alumni (Retired)

        VarunGrazitti 

         

        Say you manage to build a modal dialog with a form that submits the username/password to your IdP, besides authenticating the usere there, the IdP would still have to return the Lithium SSO token in order to authenticate the user in the community.

          

        To do so you could try using the "fallback" SSO feature: upon successful authentication your modal dialog would redirect the user to this fallback URL with the correct SSO token which would authenticate the user in the community.