api: fix OIDC not re-persisting token nonce
This commit is contained in:
parent
f4a27dffd4
commit
6ce5984c1e
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ async def get_current_user(
|
|||
token_resp = oidc_client.exchange_refresh_token(req.cookies["refresh_token"])
|
||||
if isinstance(token_resp, TokenSuccessResponse):
|
||||
logger.debug("successfully got new tokens from refresh token")
|
||||
persist_auth_state(oidc_client, resp, token_resp, auth_start_time)
|
||||
persist_auth_state(oidc_client, resp, token_resp, auth_start_time, req.cookies["auth_nonce"])
|
||||
|
||||
# return the newly gotten info
|
||||
id_token = oidc_client.decode_id_token(token_resp.id_token)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue