Class GoogleOAuth2IdentityResolverService
- java.lang.Object
-
- org.apache.qpid.server.security.auth.manager.oauth2.google.GoogleOAuth2IdentityResolverService
-
- All Implemented Interfaces:
Pluggable
,OAuth2IdentityResolverService
public class GoogleOAuth2IdentityResolverService extends 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
-
-
Constructor Summary
Constructors Constructor Description GoogleOAuth2IdentityResolverService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getDefaultAuthorizationEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
URI
getDefaultIdentityResolverEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
String
getDefaultScope(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
URI
getDefaultTokenEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
String
getType()
Principal
getUserPrincipal(OAuth2AuthenticationProvider<?> authenticationProvider, String accessToken, NamedAddressSpace addressSpace)
void
validate(OAuth2AuthenticationProvider<?> authProvider)
-
-
-
Field Detail
-
TYPE
public static final 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 Principal getUserPrincipal(OAuth2AuthenticationProvider<?> authenticationProvider, String accessToken, NamedAddressSpace addressSpace) throws IOException, IdentityResolverException
- Specified by:
getUserPrincipal
in interfaceOAuth2IdentityResolverService
- Throws:
IOException
IdentityResolverException
-
getDefaultAuthorizationEndpointURI
public URI getDefaultAuthorizationEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultAuthorizationEndpointURI
in interfaceOAuth2IdentityResolverService
-
getDefaultTokenEndpointURI
public URI getDefaultTokenEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultTokenEndpointURI
in interfaceOAuth2IdentityResolverService
-
getDefaultIdentityResolverEndpointURI
public URI getDefaultIdentityResolverEndpointURI(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultIdentityResolverEndpointURI
in interfaceOAuth2IdentityResolverService
-
getDefaultScope
public String getDefaultScope(OAuth2AuthenticationProvider<?> oAuth2AuthenticationProvider)
- Specified by:
getDefaultScope
in interfaceOAuth2IdentityResolverService
-
-