queenbee.config.auth module

class queenbee.config.auth.BaseAuth(*, type: ConstrainedStrValue = 'BaseAuth', annotations: Dict[str, Any] = None, domain: str, access_token: SecretStr = None)[source]

Bases: BaseModel

access_token: SecretStr
property auth_header: Dict[str, str]

the auth header string for this auth model

Returns:

a bearer token auth header string

Return type:

Dict[str, str]

domain: str
refresh_token()[source]
type: ConstrainedStrValue
class queenbee.config.auth.HeaderAuth(*, type: JWTAuth = 'jwt', annotations: Dict[str, Any] = None, domain: str, access_token: SecretStr = None, header_name: str)[source]

Bases: BaseAuth

property auth_header: Dict[str, str]

the auth header string for this auth model

Returns:

a header with an API token

Return type:

Dict[str, str]

header_name: str
type: JWTAuth
class queenbee.config.auth.JWTAuth(*, type: JWTAuth = 'jwt', annotations: Dict[str, Any] = None, domain: str, access_token: SecretStr = None)[source]

Bases: BaseAuth

type: JWTAuth