AuthenticationError (oauth/errors.py)

jarvis-registry · registry-pkgs/src/registry_pkgs/oauth/errors.py · python · Apache-2.0
auth

Defines OAuth authentication exceptions for API client error handling.

# Source: https://github.com/ascending-llc/jarvis-registry | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
class AuthenticationError(Exception):
    """Base exception for authentication errors."""

    pass


class OAuthReAuthRequiredError(AuthenticationError):
    """
    OAuth re-authentication is required.

    Raised when:
    - Access token expired and refresh token is invalid/expired
    - User needs to go through OAuth flow again

    Attributes:
        auth_url: The OAuth authorization URL for re-authentication (None for
            non-interactive callers, where no flow is initiated)
        server_name: Name of the server requiring re-auth
    """

    def __init__(self,

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key