Package com.linecorp.armeria.common.auth.oauth2
@UnstableApi
@NonNullByDefault
package com.linecorp.armeria.common.auth.oauth2
Common artifacts used by OAuth 2.0
implementation.
-
ClassDescriptionProvides client authorization for the OAuth 2.0 requests, as per [RFC6749], Section 2.3.Defines a structure of the Access Token Response, as per [RFC6749], Section 5.1.Builds an instance of
GrantedOAuth2AccessToken
.Defines a structure of the Token Introspection Response, as per [RFC7662], Section 2.2.Builds an instance ofOAuth2TokenDescriptor
.Implements Token Revocation request/response flow, as per [RFC7009].BuildsTokenRevocation
. -
ExceptionDescriptionClient authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.An HTTP response that is not valid for the given request/response flow.The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.A common token request exception type.The authenticated client is not authorized to use this authorization grant type.The authorization grant type is not supported by the authorization server.A response
Content-Type
header does not match the expected type.A response type in not supported by the given request/response flow.The authorization server does not support the revocation of the presented token type.