Skip to content

Instantly share code, notes, and snippets.

@drucoder
Created July 20, 2018 04:29
Show Gist options
  • Save drucoder/92a1616bf90bd3500b1c716ec445fd7f to your computer and use it in GitHub Desktop.
Save drucoder/92a1616bf90bd3500b1c716ec445fd7f to your computer and use it in GitHub Desktop.
Spring Boot REST: добавляем oAuth2 авторизацию
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
@StetskoRoman
Copy link

В те бородатые времена гугл 25$ за регистрацию аккаунта разработчика не взимал получается?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment