Skip to content

Commit

Permalink
Shield OIDC: Fix session
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Dec 29, 2024
1 parent c5d15e8 commit 9b9d54e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/providers/shield-oidc/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,13 @@ impl<U: User> Provider for OidcProvider<U> {
.lock()
.map_err(|err| SessionError::Lock(err.to_string()))?;

session_data.authentication = None;

session_data.csrf = Some(csrf_token.secret().clone());
session_data.nonce = Some(nonce.secret().clone());
session_data.verifier = pkce_code_challenge
.map(|(_, pkce_code_verifier)| pkce_code_verifier.secret().clone());
session_data.oidc_connection_id = None;
}

session.update().await?;
Expand Down

0 comments on commit 9b9d54e

Please sign in to comment.