Skip to main content

data.entities.authorization.authorization_token

AuthorizationToken Objects

@dataclass_json

@dataclass(kw_only=True)
class AuthorizationToken()

A token holding authorization information for an external system.

Attributes:

  • user_id - The user identifier.
  • auth_id - The ID of this token.
  • auth_type - The token type.
  • auth_issuer - The entity that requires the authorization.
  • auth_issuer_url - The URL of the entity that requires the authorization.
  • auth_bearer - The bearer that will be authorized against.
  • state - The state of the token.
  • timestamp - The timestamp of the token.
  • expiration_timestamp - Timestamp when the token becomes invalid; a value of 0 means that the token never becomes invalid.
  • refresh_attempts - The number of refresh attempts.
  • auth_id0 - The token strategy (e.g., OAuth2).
  • auth_id1 - The actual token data.
  • auth_id2 - Arbitrary strategy data (usually configuration).

TokenType Objects

class TokenType(StrEnum)

Various token types.

TokenState Objects

class TokenState(StrEnum)

The state of a token.