Skip to content

Instantly share code, notes, and snippets.

@apalyukha
Created January 7, 2019 13:12
Show Gist options
  • Save apalyukha/a54d6c908b74dfd3ca5db3efb35cdc75 to your computer and use it in GitHub Desktop.
Save apalyukha/a54d6c908b74dfd3ca5db3efb35cdc75 to your computer and use it in GitHub Desktop.
Spring Boot REST: add oAuth2 authorization
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