1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
Exceptions
==========
This set of exceptions were introduced to describe the situations a bit more
than just the ``ValueError`` usually raised.
``SocialAuthBaseException``
Base class for all social auth exceptions.
``AuthException``
Base exception class for authentication process errors.
``AuthFailed``
Authentication failed for some reason.
``AuthCanceled``
Authentication was canceled by the user.
``AuthUnknownError``
An unknown error stoped the authentication process.
``AuthTokenError``
Unauthorized or access token error, it was invalid, impossible to
authenticate or user removed permissions to it.
``AuthMissingParameter``
A needed parameter to continue the process was missing, usually raised by
the services that need some POST data like myOpenID.
``AuthAlreadyAssociated``
A different user has already associated the social account that the current
user is trying to associate.
``WrongBackend``
Raised when the backend given in the URLs is invalid (not enabled or
registered).
``NotAllowedToDisconnect``
Raised on disconnect action when it's not safe for the user to disconnect
the social account, probably because the user lacks a password or another
social account.
``AuthStateMissing``
The state parameter is missing from the server response.
``AuthStateForbidden``
The state parameter returned by the server is not the one sent.
``AuthTokenRevoked``
Raised when the user revoked the access_token in the provider.
These are a subclass of ``ValueError`` to keep backward compatibility.
|