See: Description
Class | Description |
---|---|
GoogleOAuth2IdentityResolverService |
An identity resolver that calls Google's userinfo endpoint https://www.googleapis.com/oauth2/v3/userinfo.
|
To use Google as an authentication provider, the OAuth2Authentication needs to be configured to co-operate with the identity resolver like so:
"type" : "OAuth2", "authorizationEndpointURI" : "https://accounts.google.com/o/oauth2/v2/auth", "tokenEndpointURI" : "https://www.googleapis.com/oauth2/v4/token", "tokenEndpointNeedsAuth" : false, "identityResolverType" : "GoogleUserInfo", "identityResolverEndpointURI" : "https://www.googleapis.com/oauth2/v3/userinfo", "clientId" : "......", "clientSecret" : "....", "scope" : "profile"Note that when configuring the Authorized redirect URIs in the Google Developer Console include the trailing slash e.g. https://localhost:8080/.
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.