Features | Open Source | Releases | Docs | Try us free | Blog | Product
How to enable SSO with Identity Manager (OAuth2) in any client App?
How it works?
This authentication is performed via Oauth2 Authorization Code Flow
Maven dependencies
First of all, add the following maven dependencies to your pom.xml
Application.yaml
Then, we need to provide some Oauth properties in the application.yml of our client App:
Note that clientId and clientSecret may change. For example: if you are going to develop a client App that makes use of a Realm from the onesait Platform, clientId will be the identification of the Realm, and clientSecret onesaitplatform, unless configured different from the Realm Management page:
Spring Web configuration
Lastly, you must configure Spring Web Security with below configuration at least:
@EnableOauth2Sso
Allow unauthenticated requests to /login** for the Authorization Flow to work.