Skip to content

Commit

Permalink
fix(jans-auth-server): if consent is off then check whether response …
Browse files Browse the repository at this point in the history
…already have access_tokne

#736
  • Loading branch information
yuriyz committed Jan 31, 2022
1 parent 294bb22 commit 81ad31b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,10 @@ protected String acceptAuthorization(WebDriver currentDriver, String redirectUri
authorizationResponseStr = waitForPageSwitch(currentDriver, authorizationResponseStr);
}
} else {
if (authorizationResponseStr.contains("#code=")) {
if (authorizationResponseStr.contains("code=") || authorizationResponseStr.contains("access_token=")) {
return authorizationResponseStr;
}
fail("The authorization form was expected to be shown.");
fail("The authorization form was expected to be shown. authorizationResponseStr:" + authorizationResponseStr);
}

return authorizationResponseStr;
Expand Down

0 comments on commit 81ad31b

Please sign in to comment.