Hi,
I am implementing authentication and authorization in the spring boot(2.2.4) app using spring security(spring-security-starter). I want below 3 things in one application:
Authenticate User using database (I am using hibernate)- For this I can use spring's UserDetailServiceAuthenticate User using SAML 2.0 protocol- Using Okta as identity provider, can use others as well like OneLogin etc.Authenticate User using OAuth 2.0 protocol- can authenticate user with Github, Google, Facebook
I also want to know how can I enable and disable a particular one by setting some properties in
application.properties file.
I am able to authenticate the user using SAML, and OAuth in separate applications, see the code below, but I want all these three(3) in one application.
Tried: I tried to achieve this with the help of
this article but couldn't get that how to do the proper configuration.
Using SAML:
Using OAuth 2.0