State#
- class gafaelfawr.models.state.State(*, csrf=None, token=None, github=None, return_url=None, state=None, login_start=None)#
Bases:
BaseState,BaseModelState information stored in a cookie.
- Parameters:
Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].Methods Summary
from_cookie(cookie[, request])Reconstruct state from an encrypted cookie.
Build an encrypted cookie representation of the state.
Attributes Documentation
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
Methods Documentation
- async classmethod from_cookie(cookie, request=None)#
Reconstruct state from an encrypted cookie.
- Parameters:
- Returns:
The state represented by the cookie.
- Return type:
- to_cookie()#
Build an encrypted cookie representation of the state.
- Returns:
The encrypted cookie value.
- Return type:
- Overrides: