Created
January 7, 2019 13:12
-
-
Save apalyukha/a54d6c908b74dfd3ca5db3efb35cdc75 to your computer and use it in GitHub Desktop.
Spring Boot REST: add oAuth2 authorization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security.oauth2.client.clientId=some-secret.apps.googleusercontent.com | |
security.oauth2.client.clientSecret=very-secret | |
security.oauth2.client.accessTokenUri=https://www.googleapis.com/oauth2/v4/token | |
security.oauth2.client.userAuthorizationUri=https://accounts.google.com/o/oauth2/v2/auth | |
security.oauth2.client.clientAuthenticationScheme=form | |
security.oauth2.client.scope=openid,email,profile | |
security.oauth2.resource.userInfoUri=https://www.googleapis.com/oauth2/v3/userinfo | |
security.oauth2.resource.preferTokenInfo=true | |
server.port=9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment