Skip to content

Instantly share code, notes, and snippets.

@navichok26
Created February 8, 2020 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navichok26/6b9a24de02702dcf13e9add741e5080c to your computer and use it in GitHub Desktop.
Save navichok26/6b9a24de02702dcf13e9add741e5080c to your computer and use it in GitHub Desktop.
Spring boot OAuth2 with google
security.oauth2.client.clientId=****
security.oauth2.client.clientSecret=****
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment