How do I add a multiple sso login into my Spring Boot/Angular application

Discussão em 'Angular' iniciado por DasShorty, Março 26, 2025.

  1. DasShorty

    DasShorty Guest

    I want to create a Spring Boot and Angular Application that should have three different authentication methods.

    These three are: Google, Microsoft Entra and Email/Password with a JWT instead of basic auth.

    I already have a working version for the Email and Password method but stuggle on how to setup the other two.

    The main goal for the other two variants of authentication should only be to validate the user itself (or create a token for the own application for better validation). I don't really want to communicate with the google or microsoft services at this point.

    I've created following structure on how i think, that the authentication should work[​IMG]

    I had already implemented a way of validation for the microsoft entra login in Spring and Angular but due to the msal-client and the active-directory i find it really difficult to understand what happens due to all these different documentations and outdated repositories from microsoft. I got after some weeks a working version. But i've seen many versions that only used the resouce-client with client id and secret.


    Why do i want to renew the microsoft auth if i have a working one?
    ​

    This is quite simple to explain. If i add a second or third way of authentication i don't really want different approches with each authentication method. I want a single way on checking.

    Continue reading...

Compartilhe esta Página