Package org.apache.qpid.server.security.auth.manager.oauth2.github
Identity resolver utilising GitHub's OAuth 2.0 user API
To use GitHub as an authentication provider, the OAuth2Authentication needs to be configured to co-operate with the identity resolver like so:
"type" : "OAuth2", "authorizationEndpointURI" : "https://github.com/login/oauth/authorize", "tokenEndpointURI" : "https://github.com/login/oauth/access_token", "tokenEndpointNeedsAuth" : false, "identityResolverType" : "GitHubUser", "identityResolverEndpointURI" : "https://api.github.com/user", "clientId" : "......", "clientSecret" : "....", "scope" : "user"
-
Class Summary Class Description GitHubOAuth2IdentityResolverService An identity resolver that calls GitHubs's user API https://developer.github.com/v3/users/ It requires that the authentication request includes the scope 'user'