public class OAuth2Authenticator extends Object implements io.dropwizard.auth.Authenticator<String,AuthenticatedUser>
| Modifier and Type | Field and Description |
|---|---|
static String |
VERIFY_TOKEN_RESPONSE
Constant name of the request attribute where the response is stored.
|
| Constructor and Description |
|---|
OAuth2Authenticator(OAuth2ClientConfig configuration,
org.slf4j.Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<AuthenticatedUser> |
authenticate(String accessToken) |
VerifyTokenResponse |
verify(String accessToken) |
public static final String VERIFY_TOKEN_RESPONSE
@Inject public OAuth2Authenticator(OAuth2ClientConfig configuration, org.slf4j.Logger logger)
configuration - logger - public com.google.common.base.Optional<AuthenticatedUser> authenticate(String accessToken) throws io.dropwizard.auth.AuthenticationException
authenticate in interface io.dropwizard.auth.Authenticator<String,AuthenticatedUser>io.dropwizard.auth.AuthenticationExceptionpublic VerifyTokenResponse verify(String accessToken) throws io.dropwizard.auth.AuthenticationException, IOException
io.dropwizard.auth.AuthenticationExceptionIOExceptionCopyright © 2015. All rights reserved.