Class GoogleOAuth2IdentityResolverService
- java.lang.Object
-
- org.apache.qpid.server.security.auth.manager.oauth2.google.GoogleOAuth2IdentityResolverService
-
- All Implemented Interfaces:
Pluggable
,OAuth2IdentityResolverService
public class GoogleOAuth2IdentityResolverService extends java.lang.Object implements OAuth2IdentityResolverService
An identity resolver that calls Google's userinfo endpoint https://www.googleapis.com/oauth2/v3/userinfo. It requires that the authentication request includes the scope 'profile' in order that 'sub' (the user identifier) appears in userinfo's response. For endpoint is documented: https://developers.google.com/identity/protocols/OpenIDConnect
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE
-
Constructor Summary
Constructors Constructor Description GoogleOAuth2IdentityResolverService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getDefaultAuthorizationEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
java.net.URI
getDefaultIdentityResolverEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
java.lang.String
getDefaultScope(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
java.net.URI
getDefaultTokenEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
java.lang.String
getType()
java.security.Principal
getUserPrincipal(OAuth2AuthenticationProvider<?> authenticationProvider, java.lang.String accessToken, NamedAddressSpace addressSpace)
void
validate(OAuth2AuthenticationProvider<?> authProvider)
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public void validate(OAuth2AuthenticationProvider<?> authProvider) throws IllegalConfigurationException
- Specified by:
validate
in interfaceOAuth2IdentityResolverService
- Throws:
IllegalConfigurationException
-
getUserPrincipal
public java.security.Principal getUserPrincipal(OAuth2AuthenticationProvider<?> authenticationProvider, java.lang.String accessToken, NamedAddressSpace addressSpace) throws java.io.IOException, IdentityResolverException
- Specified by:
getUserPrincipal
in interfaceOAuth2IdentityResolverService
- Throws:
java.io.IOException
IdentityResolverException
-
getDefaultAuthorizationEndpointURI
public java.net.URI getDefaultAuthorizationEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultAuthorizationEndpointURI
in interfaceOAuth2IdentityResolverService
-
getDefaultTokenEndpointURI
public java.net.URI getDefaultTokenEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultTokenEndpointURI
in interfaceOAuth2IdentityResolverService
-
getDefaultIdentityResolverEndpointURI
public java.net.URI getDefaultIdentityResolverEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultIdentityResolverEndpointURI
in interfaceOAuth2IdentityResolverService
-
getDefaultScope
public java.lang.String getDefaultScope(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultScope
in interfaceOAuth2IdentityResolverService
-
-