From 81ad31b6058907830adeac4183ddb70a38110b7a Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Mon, 31 Jan 2022 14:56:41 +0200 Subject: [PATCH] fix(jans-auth-server): if consent is off then check whether response already have access_tokne https://github.com/JanssenProject/jans/issues/736 --- .../client/src/test/java/io/jans/as/client/BaseTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 4c048a833d4..e4a1d644391 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 @@ -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;