Package org.apache.qpid.server.security.auth.manager.oauth2.google
Identity resolver utilising Google's OAuth 2.0 userinfo endpoint
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/.
-
Class Summary Class Description GoogleOAuth2IdentityResolverService An identity resolver that calls Google's userinfo endpoint https://www.googleapis.com/oauth2/v3/userinfo.