Errors
Errors used throughout the project.
AccessDeniedError
InsecureTransportError
Bases: OAuth2Error
An exception will be thrown if the current request is not secure.
Source code in aioauth/errors.py
InvalidClientError
Bases: OAuth2Error
Client authentication failed (e.g. unknown client, no client
authentication included, or unsupported authentication method).
The authorization server may return an HTTP 401
(Unauthorized) status
code to indicate which HTTP authentication schemes are supported.
If the client attempted to authenticate via the Authorization
request
header field, the authorization server must respond with an
HTTP 401
(Unauthorized) status code, and include the WWW-Authenticate
response header field matching the authentication scheme used by the
client.
Source code in aioauth/errors.py
InvalidGrantError
Bases: OAuth2Error
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.
See RFC6749 section 5.2.
Source code in aioauth/errors.py
InvalidRedirectURIError
InvalidRequestError
Bases: OAuth2Error
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
Source code in aioauth/errors.py
InvalidScopeError
Bases: OAuth2Error
The requested scope is invalid, unknown, or malformed, or exceeds the scope granted by the resource owner.
See RFC6749 section 5.2.
Source code in aioauth/errors.py
MethodNotAllowedError
Bases: OAuth2Error
The request is valid, but the method trying to be accessed is not available to the resource owner.
Source code in aioauth/errors.py
MismatchingStateError
Bases: OAuth2Error
Unable to securely verify the integrity of the request and response.
Source code in aioauth/errors.py
OAuth2Error
Bases: Exception
Base exception that all other exceptions inherit from.
Source code in aioauth/errors.py
ServerError
Bases: OAuth2Error
The authorization server encountered an unexpected condition that
prevented it from fulfilling the request. (This error code is needed
because a HTTP 500
(Internal Server Error) status code cannot be returned
to the client via a HTTP redirect.)
Source code in aioauth/errors.py
TemporarilyUnavailableError
Bases: OAuth2Error
The authorization server is currently unable to handle the request
due to a temporary overloading or maintenance of the server.
(This error code is needed because a HTTP 503
(Service Unavailable)
status code cannot be returned to the client via a HTTP redirect.)
Source code in aioauth/errors.py
UnauthorizedClientError
Bases: OAuth2Error
The authenticated client is not authorized to use this authorization grant type.
Source code in aioauth/errors.py
UnsupportedGrantTypeError
Bases: OAuth2Error
The authorization grant type is not supported by the authorization server.
Source code in aioauth/errors.py
UnsupportedResponseTypeError
Bases: OAuth2Error
The authorization server does not support obtaining an authorization code using this method.
Source code in aioauth/errors.py
UnsupportedTokenTypeError
Bases: OAuth2Error
The authorization server does not support the revocation of the presented token type. That is, the client tried to revoke an access token on a server not supporting this feature.