How can I use multiple Oauth2 SSO Servers on a single Spring boot application with Spring Cloud Security Oauth2?

11,819

You basically have to install a separate authentication filter for each provider. There's a tutorial here: https://spring.io/guides/tutorials/spring-boot-oauth2/.

Share:
11,819
Raul G
Author by

Raul G

Software developer and newbie linux sysadmin

Updated on June 04, 2022

Comments

  • Raul G
    Raul G almost 2 years

    I'd like to give users the option to login to a Spring Boot web application using their Google or Facebook account.

    I checked The Spring Cloud Security documentation and also This GitHub issue to add such SSO functionality, but on both they only show how to configure one SSO server, so it's either Google or Facebook.

    How can I add both options? on the web front-end I will add a button for each option so the users can choose which account to use, either Google or Facebook.

    Or I am choosing the wrong package and should use something different altogether to achieve this?

    Thanks!