From 8a952d724f2d044de6019a6c4872caa55cb2b3c7 Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Mon, 31 Jan 2022 19:46:18 +0200 Subject: [PATCH] fix(jans-auth-server): fixed device authz tests https://github.com/JanssenProject/jans/issues/736 --- .../client/src/test/java/io/jans/as/client/BaseTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jans-auth-server/client/src/test/java/io/jans/as/client/BaseTest.java b/jans-auth-server/client/src/test/java/io/jans/as/client/BaseTest.java index a0e14c49891..c2bd69eddde 100644 --- a/jans-auth-server/client/src/test/java/io/jans/as/client/BaseTest.java +++ b/jans-auth-server/client/src/test/java/io/jans/as/client/BaseTest.java @@ -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; }