Skip to content

Commit

Permalink
kill the session before re-authenticating the user
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Jul 25, 2023
1 parent af97c32 commit ef19cad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mod_auth_openidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,7 @@ static int oidc_handle_existing_session(request_rec *r, oidc_cfg *cfg,
if (oidc_cfg_dir_action_on_error_refresh(
r) == OIDC_ON_ERROR_AUTHENTICATE) {
*needs_save = FALSE;
oidc_session_kill(r, session);
return oidc_handle_unauthenticated_user(r, cfg);
}
}
Expand Down

0 comments on commit ef19cad

Please sign in to comment.