Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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, we have to configure Spring Web Security with below configuration at least:

@EnableOauth2Sso 

Allow unauthenticated requests to /login** for the Authorization Flow to work.




  • No labels