Class tigrbl_auth.rfc.rfc8693.TokenExchangeResponse
tigrbl_auth.rfc.rfc8693.TokenExchangeResponse
TokenExchangeResponse(
access_token,
token_type="Bearer",
*,
expires_in=None,
refresh_token=None,
scope=None,
issued_token_type=None,
)
Represents a token exchange response per RFC 8693.
Initialize a token exchange response.
PARAMETER | DESCRIPTION |
---|---|
access_token
|
The issued access token
TYPE:
|
token_type
|
Token type (typically "Bearer")
TYPE:
|
expires_in
|
Token lifetime in seconds
TYPE:
|
refresh_token
|
Optional refresh token
TYPE:
|
scope
|
Granted scope
TYPE:
|
issued_token_type
|
Type of the issued token
TYPE:
|
Source code in tigrbl_auth/rfc/rfc8693.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
|
access_token
instance-attribute
access_token = access_token
token_type
instance-attribute
token_type = token_type
expires_in
instance-attribute
expires_in = expires_in
refresh_token
instance-attribute
refresh_token = refresh_token
scope
instance-attribute
scope = scope
issued_token_type
instance-attribute
issued_token_type = issued_token_type
to_dict
to_dict()
Convert response to dictionary for JSON serialization.
Source code in tigrbl_auth/rfc/rfc8693.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|