Skip to content

Commit

Permalink
fix(jans-auth-server): fixed device authz tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz committed Jan 31, 2022
1 parent 8b59739 commit 8a952d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ private WebElement waitForRequredElementLoad(WebDriver currentDriver, String id)
protected String acceptAuthorization(WebDriver currentDriver, String redirectUri) {
String authorizationResponseStr = currentDriver.getCurrentUrl();

if (authorizationResponseStr.contains("code=") || authorizationResponseStr.contains("access_token=")) {
if ((authorizationResponseStr.contains("code=") || authorizationResponseStr.contains("access_token=")) && !authorizationResponseStr.contains("user_code")) {
return authorizationResponseStr;
}

Expand Down

0 comments on commit 8a952d7

Please sign in to comment.