[java-idp-plugin-oidc-rp] branch main updated: JCOMOIDC-38 - Move various support classes from the OP plugin
Phil Smart
philip.smart at jisc.ac.uk
Mon Feb 20 16:01:11 UTC 2023
This is an automated email from the git hooks/post-receive script.
philsmart pushed a commit to branch main
in repository java-idp-plugin-oidc-rp.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-oidc-rp.git;a=commit;h=ac0d0ddc4c87a337bd5d43442c9b34a5ba685d5c
The following commit(s) were added to refs/heads/main by this push:
new ac0d0dd JCOMOIDC-38 - Move various support classes from the OP plugin
ac0d0dd is described below
commit ac0d0ddc4c87a337bd5d43442c9b34a5ba685d5c
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Mon Feb 20 16:01:09 2023 +0000
JCOMOIDC-38 - Move various support classes from the OP plugin
- Move 'isSign' and 'isEncrypted' request object predicates into
commons
https://shibboleth.atlassian.net/browse/JCOMOIDC-38
---
.../logic/EncryptRequestObjectPredicate.java | 45 ----------------------
.../config/logic/SignRequestObjectPredicate.java | 45 ----------------------
2 files changed, 90 deletions(-)
diff --git a/idp-oidc-rp-api/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/config/logic/EncryptRequestObjectPredicate.java b/idp-oidc-rp-api/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/config/logic/EncryptRequestObjectPredicate.java
deleted file mode 100644
index a2577a5..0000000
--- a/idp-oidc-rp-api/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/config/logic/EncryptRequestObjectPredicate.java
+++ /dev/null
@@ -1,45 +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.authn.oidc.rp.config.logic;
-
-import javax.annotation.Nullable;
-
-import org.opensaml.profile.context.ProfileRequestContext;
-
-import net.shibboleth.idp.profile.config.ProfileConfiguration;
-import net.shibboleth.idp.profile.context.RelyingPartyContext;
-import net.shibboleth.idp.profile.logic.AbstractRelyingPartyPredicate;
-import net.shibboleth.oidc.profile.config.OIDCAuthorizationConfiguration;
-
-/** A predicate that determines if the RequestObject JWT should be encrypted based on the profile configuration.*/
-public class EncryptRequestObjectPredicate extends AbstractRelyingPartyPredicate {
-
- @Override
- public boolean test(@Nullable final ProfileRequestContext input) {
-
- final RelyingPartyContext rpc = getRelyingPartyContextLookupStrategy().apply(input);
- if (rpc != null) {
- final ProfileConfiguration pc = rpc.getProfileConfig();
- if (pc instanceof OIDCAuthorizationConfiguration) {
- return ((OIDCAuthorizationConfiguration) pc).isEncryptRequestObject(input);
- }
- }
- return false;
- }
-
-}
diff --git a/idp-oidc-rp-api/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/config/logic/SignRequestObjectPredicate.java b/idp-oidc-rp-api/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/config/logic/SignRequestObjectPredicate.java
deleted file mode 100644
index cb48477..0000000
--- a/idp-oidc-rp-api/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/config/logic/SignRequestObjectPredicate.java
+++ /dev/null
@@ -1,45 +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.authn.oidc.rp.config.logic;
-
-import javax.annotation.Nullable;
-
-import org.opensaml.profile.context.ProfileRequestContext;
-
-import net.shibboleth.idp.profile.config.ProfileConfiguration;
-import net.shibboleth.idp.profile.context.RelyingPartyContext;
-import net.shibboleth.idp.profile.logic.AbstractRelyingPartyPredicate;
-import net.shibboleth.oidc.profile.config.OIDCAuthorizationConfiguration;
-
-/** A predicate that determines if the RequestObject JWT should be signed based on the profile configuration.*/
-public class SignRequestObjectPredicate extends AbstractRelyingPartyPredicate {
-
- @Override
- public boolean test(@Nullable final ProfileRequestContext input) {
-
- final RelyingPartyContext rpc = getRelyingPartyContextLookupStrategy().apply(input);
- if (rpc != null) {
- final ProfileConfiguration pc = rpc.getProfileConfig();
- if (pc instanceof OIDCAuthorizationConfiguration) {
- return ((OIDCAuthorizationConfiguration) pc).isSignRequestObject(input);
- }
- }
- return false;
- }
-
-}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list