Buckets:

download
raw
1.87 kB
from fief.models import OAuthProvider, Tenant
from fief.schemas.auth import (
AuthorizeError,
AuthorizeRedirectError,
LoginError,
LogoutError,
TokenError,
)
from fief.schemas.oauth import OAuthError
class AuthorizeException(Exception):
def __init__(self, error: AuthorizeError, tenant: Tenant | None = None) -> None:
self.error = error
self.tenant = tenant
class AuthorizeRedirectException(Exception):
def __init__(
self,
error: AuthorizeRedirectError,
redirect_uri: str,
response_mode: str,
state: str | None,
tenant: Tenant | None = None,
) -> None:
self.error = error
self.redirect_uri = redirect_uri
self.response_mode = response_mode
self.state = state
self.tenant = tenant
class LoginException(Exception):
def __init__(
self,
error: LoginError,
oauth_providers: list[OAuthProvider] | None = None,
tenant: Tenant | None = None,
*,
fatal: bool = False,
) -> None:
self.error = error
self.oauth_providers = oauth_providers
self.tenant = tenant
self.fatal = fatal
class OAuthException(Exception):
def __init__(
self,
error: OAuthError,
oauth_providers: list[OAuthProvider] | None = None,
tenant: Tenant | None = None,
*,
fatal: bool = False,
) -> None:
self.error = error
self.oauth_providers = oauth_providers
self.tenant = tenant
self.fatal = fatal
class TokenRequestException(Exception):
def __init__(self, error: TokenError) -> None:
self.error = error
class LogoutException(Exception):
def __init__(self, error: LogoutError, tenant: Tenant | None = None) -> None:
self.error = error
self.tenant = tenant

Xet Storage Details

Size:
1.87 kB
·
Xet hash:
82c824b65e272cb0f0e0262c8f9834139e5c77d8363130e2d590526dc3764e3b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.