[java-idp-oidc] 10/31: Adapt token flow test into the current flow containing 'UnwrapGrant' action.
Henri Mikkonen
henri.mikkonen at iki.fi
Tue Jun 24 08:52:46 UTC 2025
This is an automated email from the git hooks/post-receive script.
hjmikkon pushed a commit to branch dev/JOIDC-222
in repository java-idp-oidc.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-oidc.git;a=commit;h=78bd3563c23a92a7861ee8f19f46d0e7688ed51c
commit 78bd3563c23a92a7861ee8f19f46d0e7688ed51c
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Fri Feb 21 16:05:43 2025 +0200
Adapt token flow test into the current flow containing 'UnwrapGrant' action.
---
.../shibboleth/idp/plugin/oidc/op/profile/flow/TokenFlowTest.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/flow/TokenFlowTest.java b/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/flow/TokenFlowTest.java
index e2a48be1..1f2b0f55 100644
--- a/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/flow/TokenFlowTest.java
+++ b/idp-oidc-extension-impl/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/flow/TokenFlowTest.java
@@ -162,8 +162,9 @@ public class TokenFlowTest extends AbstractOidcClientAuthenticationFlowTest {
}
@Test
- public void testUntrustedClient() throws IOException, ParseException {
- setHttpFormRequest("POST", createRequestParameters(null, "authorization_code", "mockCode", clientId + "2"));
+ public void testUntrustedClient() throws Exception {
+ setHttpFormRequest("POST", createRequestParameters(null, "authorization_code",
+ buildAuthorizationCode(clientId + "2", null, scope.toString()), clientId + "2"));
final FlowExecutionResult result = flowExecutor.launchExecution(FLOW_ID, null, externalContext);
assertErrorCode(result, OAuth2Error.INVALID_CLIENT_CODE);
}
@@ -173,7 +174,7 @@ public class TokenFlowTest extends AbstractOidcClientAuthenticationFlowTest {
setHttpFormRequest("POST", createRequestParameters(redirectUri, "authorization_code", "mockCode", clientId));
storeMetadata(storageService, clientId, clientSecret, scope);
final FlowExecutionResult result = flowExecutor.launchExecution(FLOW_ID, null, externalContext);
- assertErrorCode(result, OAuth2Error.INVALID_CLIENT_CODE);
+ assertErrorCode(result, OAuth2Error.INVALID_GRANT_CODE);
}
@Test
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list