simple_openid_connect.token_refresh¶
Refresh token exchange implementation.
Functions
|
Exchange a refresh token for new tokens |
- simple_openid_connect.token_refresh.exchange_refresh_token(token_endpoint: str, refresh_token: str, client_authentication: ClientAuthenticationMethod) TokenSuccessResponse | TokenErrorResponse [source]¶
Exchange a refresh token for new tokens
- Parameters:
token_endpoint – The endpoint of the OP at which tokens can be exchanged. Corresponds to
ProviderMetadata.token_endpoint
refresh_token – The refresh token to use
client_authentication – A way for the client to authenticate itself