Skip to content

Commit

Permalink
Change redirect type from HTTP 307 to HTTP 303
Browse files Browse the repository at this point in the history
  • Loading branch information
instipod committed Dec 23, 2023
1 parent 9690dc1 commit d67befb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private void startDuoProcess(AuthenticationFlowContext authenticationFlowContext

try {
String startingUrl = duoClient.createAuthUrl(username, loginState);
authenticationFlowContext.challenge(Response.temporaryRedirect(new URI(startingUrl)).build());
authenticationFlowContext.challenge(Response.seeOther(new URI(startingUrl)).build());
} catch (Exception exception) {
if (authConfig.getConfig().getOrDefault(DuoUniversalAuthenticatorFactory.DUO_FAIL_SAFE, "true").equalsIgnoreCase("false")) {
// fail secure, deny login
Expand Down

0 comments on commit d67befb

Please sign in to comment.