TokenBase#

class gafaelfawr.models.token.TokenBase(*, username, token_type, service=None, scopes, created=<factory>, expires=None)#

Bases: BaseModel

Base information about a token common to several representations.

This is the information that’s common to the Redis and database representations of the token.

Parameters:

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].