Adds the py-jwt wiki to the hub alongside lib and mcp and picks up the regenerated flat lib reference and standardized MCP modules.
51 lines
3.0 KiB
JSON
51 lines
3.0 KiB
JSON
{
|
|
"module": "jwtlib.exceptions",
|
|
"content": {
|
|
"path": "jwtlib.exceptions",
|
|
"docstring": "# Summary\n\nAuthentication and authorization exceptions.\n\nThis module defines the exception hierarchy used throughout the\nauthentication library to represent authentication, authorization,\nand service-level failures.\n\nAll exceptions inherit from `AuthError`, allowing consumers to catch\nauthentication-related failures broadly or handle specific cases\nselectively.",
|
|
"objects": {
|
|
"AuthError": {
|
|
"name": "AuthError",
|
|
"kind": "class",
|
|
"path": "jwtlib.exceptions.AuthError",
|
|
"signature": null,
|
|
"docstring": "Base authentication and authorization error.\n\nNotes:\n **Guarantees:**\n\n - All authentication-related exceptions raised by this library\n inherit from this class.\n - Consumers may catch this exception to handle all auth failures\n uniformly."
|
|
},
|
|
"InvalidToken": {
|
|
"name": "InvalidToken",
|
|
"kind": "class",
|
|
"path": "jwtlib.exceptions.InvalidToken",
|
|
"signature": null,
|
|
"docstring": "Raised when a `JWT` is missing, malformed, expired, or invalid.\n\nNotes:\n **Guarantees:**\n\n - This error indicates that the provided token cannot be used to\n authenticate a request."
|
|
},
|
|
"InvalidAuthorizationHeader": {
|
|
"name": "InvalidAuthorizationHeader",
|
|
"kind": "class",
|
|
"path": "jwtlib.exceptions.InvalidAuthorizationHeader",
|
|
"signature": null,
|
|
"docstring": "Raised when the `Authorization` header is missing or incorrectly\nformatted.\n\nNotes:\n **Guarantees:**\n\n - Indicates that the header is not present or does not follow the\n expected `Bearer <token>` format."
|
|
},
|
|
"UserNotFound": {
|
|
"name": "UserNotFound",
|
|
"kind": "class",
|
|
"path": "jwtlib.exceptions.UserNotFound",
|
|
"signature": null,
|
|
"docstring": "Raised when a valid token does not map to an existing user.\n\nNotes:\n **Guarantees:**\n\n - Indicates that authentication succeeded at the token level, but\n the associated user record could not be resolved."
|
|
},
|
|
"AuthServiceUnavailable": {
|
|
"name": "AuthServiceUnavailable",
|
|
"kind": "class",
|
|
"path": "jwtlib.exceptions.AuthServiceUnavailable",
|
|
"signature": null,
|
|
"docstring": "Raised when the authentication service cannot be reached.\n\nNotes:\n **Guarantees:**\n\n - Indicates a network failure, timeout, or unexpected error while\n communicating with the auth service."
|
|
},
|
|
"NotAuthenticated": {
|
|
"name": "NotAuthenticated",
|
|
"kind": "class",
|
|
"path": "jwtlib.exceptions.NotAuthenticated",
|
|
"signature": null,
|
|
"docstring": "Raised when authentication is required but no user context is present.\n\nNotes:\n **Guarantees:**\n\n - Typically used when attempting to access a protected operation\n without an authenticated user."
|
|
}
|
|
}
|
|
}
|
|
} |