Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
errors.py79 linesDownload Raw Back to core
1from authlib.oauth2 import OAuth2Error2 3 4class InteractionRequiredError(OAuth2Error):5    """The Authorization Server requires End-User interaction of some form6    to proceed. This error MAY be returned when the prompt parameter value7    in the Authentication Request is none, but the Authentication Request8    cannot be completed without displaying a user interface for End-User9    interaction.10 11    http://openid.net/specs/openid-connect-core-1_0.html#AuthError12    """13    error = 'interaction_required'14 15 16class LoginRequiredError(OAuth2Error):17    """The Authorization Server requires End-User authentication. This error18    MAY be returned when the prompt parameter value in the Authentication19    Request is none, but the Authentication Request cannot be completed20    without displaying a user interface for End-User authentication.21 22    http://openid.net/specs/openid-connect-core-1_0.html#AuthError23    """24    error = 'login_required'25 26 27class AccountSelectionRequiredError(OAuth2Error):28    """The End-User is REQUIRED to select a session at the Authorization29    Server. The End-User MAY be authenticated at the Authorization Server30    with different associated accounts, but the End-User did not select a31    session. This error MAY be returned when the prompt parameter value in32    the Authentication Request is none, but the Authentication Request cannot33    be completed without displaying a user interface to prompt for a session34    to use.35 36    http://openid.net/specs/openid-connect-core-1_0.html#AuthError37    """38    error = 'account_selection_required'39 40 41class ConsentRequiredError(OAuth2Error):42    """The Authorization Server requires End-User consent. This error MAY be43    returned when the prompt parameter value in the Authentication Request is44    none, but the Authentication Request cannot be completed without45    displaying a user interface for End-User consent.46 47    http://openid.net/specs/openid-connect-core-1_0.html#AuthError48    """49    error = 'consent_required'50 51 52class InvalidRequestURIError(OAuth2Error):53    """The request_uri in the Authorization Request returns an error or54    contains invalid data.55 56    http://openid.net/specs/openid-connect-core-1_0.html#AuthError57    """58    error = 'invalid_request_uri'59 60 61class InvalidRequestObjectError(OAuth2Error):62    """The request parameter contains an invalid Request Object."""63    error = 'invalid_request_object'64 65 66class RequestNotSupportedError(OAuth2Error):67    """The OP does not support use of the request parameter."""68    error = 'request_not_supported'69 70 71class RequestURINotSupportedError(OAuth2Error):72    """The OP does not support use of the request_uri parameter."""73    error = 'request_uri_not_supported'74 75 76class RegistrationNotSupportedError(OAuth2Error):77    """The OP does not support use of the registration parameter."""78    error = 'registration_not_supported'79 
codekingpro/portable-devtools · Team Ai