State¶
- class gafaelfawr.models.state.State(csrf=None, token=None, github=None, return_url=None, state=None, login_start=None)¶
Bases:
BaseState
State information stored in a cookie.
- Parameters:
Attributes Summary
CSRF token for form submissions.
GitHub OAuth token if user authenticated via GitHub.
Start time of login process if one is in progress.
Destination URL after completion of login.
State token for OAuth 2.0 and OpenID Connect logins.
Token if the user is authenticated.
Methods Summary
from_cookie
(cookie[, request])Reconstruct state from an encrypted cookie.
Build an encrypted cookie representation of the state.
Attributes Documentation
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: