[java-idp-oidc] branch main updated: Remove failing test.
Scott Cantor
cantor.2 at osu.edu
Tue Jan 4 23:15:04 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-idp-oidc.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-oidc.git;a=commit;h=4750a821e7da0922eec1d840b0168a6cb0d6c892
The following commit(s) were added to refs/heads/main by this push:
new 4750a821 Remove failing test.
4750a821 is described below
commit 4750a821e7da0922eec1d840b0168a6cb0d6c892
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jan 4 18:15:01 2022 -0500
Remove failing test.
---
.../BaseTokenRequestLookupFunctionTest.java | 13 +++++---
.../TokenRequestScopeLookupFunctionTest.java | 36 ----------------------
2 files changed, 8 insertions(+), 41 deletions(-)
diff --git a/idp-oidc-extension-api/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/context/navigate/BaseTokenRequestLookupFunctionTest.java b/idp-oidc-extension-api/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/context/navigate/BaseTokenRequestLookupFunctionTest.java
index d62c916a..fdefb3a6 100644
--- a/idp-oidc-extension-api/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/context/navigate/BaseTokenRequestLookupFunctionTest.java
+++ b/idp-oidc-extension-api/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/context/navigate/BaseTokenRequestLookupFunctionTest.java
@@ -107,11 +107,14 @@ public class BaseTokenRequestLookupFunctionTest {
prc.setOutboundMessageContext(new MessageContext());
oidcCtx = new OIDCAuthenticationResponseContext();
prc.getOutboundMessageContext().addSubcontext(oidcCtx);
- oidcCtx.setTokenClaimsSet(new AuthorizeCodeClaimsSet.Builder(new SecureRandomIdentifierGenerationStrategy(),
- cliendID, issuer, userPrin, subject, iat, exp, authTime, redirectUri, scope).setACR(acr).setNonce(nonce)
- .setClaims(claimsRequest).setDlClaims(tokenDeliveryClaims)
- .setDlClaimsID(tokenToIdTokenDeliveryClaims).setDlClaimsUI(tokenToUserInfoTokenDeliveryClaims)
- .setConsentedClaims(consentedClaims).build());
+ oidcCtx.setAuthorizationGrantClaimsSet(
+ new AuthorizeCodeClaimsSet.Builder(new SecureRandomIdentifierGenerationStrategy(),
+ cliendID, issuer, userPrin, subject, iat, exp, authTime, redirectUri, scope).setACR(acr)
+ .setNonce(nonce).setClaims(claimsRequest)
+ .setDlClaims(tokenDeliveryClaims)
+ .setDlClaimsID(tokenToIdTokenDeliveryClaims)
+ .setDlClaimsUI(tokenToUserInfoTokenDeliveryClaims)
+ .setConsentedClaims(consentedClaims).build());
}
}
\ No newline at end of file
diff --git a/idp-oidc-extension-api/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/context/navigate/TokenRequestScopeLookupFunctionTest.java b/idp-oidc-extension-api/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/context/navigate/TokenRequestScopeLookupFunctionTest.java
deleted file mode 100644
index f5306928..00000000
--- a/idp-oidc-extension-api/src/test/java/net/shibboleth/idp/plugin/oidc/op/profile/context/navigate/TokenRequestScopeLookupFunctionTest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the University Corporation for Advanced Internet Development,
- * Inc. (UCAID) under one or more contributor license agreements. See the
- * NOTICE file distributed with this work for additional information regarding
- * copyright ownership. The UCAID licenses this file to You under the Apache
- * License, Version 2.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package net.shibboleth.idp.plugin.oidc.op.profile.context.navigate;
-
-import org.testng.annotations.Test;
-
-import net.shibboleth.idp.plugin.oidc.op.profile.context.navigate.TokenRequestScopeLookupFunction;
-
-import org.testng.Assert;
-
-/** Test for {@link TokenRequestScopeLookupFunction}. */
-public class TokenRequestScopeLookupFunctionTest extends BaseTokenRequestLookupFunctionTest {
-
- private TokenRequestScopeLookupFunction lookup = new TokenRequestScopeLookupFunction();
-
- @Test
- public void testLookup() {
- Assert.assertEquals(scope, lookup.apply(prc));
- }
-
-}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list