[java-oidc-common] branch main updated: Add a missing error code.
Scott Cantor
cantor.2 at osu.edu
Thu Feb 17 14:08:16 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=8d07ec9e6c106d0358f8dbdb5760b55e7f91b9d8
The following commit(s) were added to refs/heads/main by this push:
new 8d07ec9 Add a missing error code.
8d07ec9 is described below
commit 8d07ec9e6c106d0358f8dbdb5760b55e7f91b9d8
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Feb 17 09:08:13 2022 -0500
Add a missing error code.
---
.../shibboleth/oidc/profile/core/OidcError.java | 50 ++++++++++++++++++++++
.../shibboleth/oidc/profile/core/OidcEventIds.java | 7 ++-
2 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/core/OidcError.java b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/core/OidcError.java
new file mode 100644
index 0000000..0fb3876
--- /dev/null
+++ b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/core/OidcError.java
@@ -0,0 +1,50 @@
+/*
+ * 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.oidc.profile.core;
+
+import javax.annotation.Nonnull;
+
+import com.nimbusds.oauth2.sdk.ErrorObject;
+import com.nimbusds.oauth2.sdk.http.HTTPResponse;
+
+import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
+
+/**
+ * Supplemental error objects for any missing values in the Nimbus library,
+ */
+public final class OidcError {
+
+ /**
+ * The resource indicator is invalid.
+ */
+ @Nonnull @NotEmpty public static final String INVALID_TARGET_CODE = "invalid_target";
+
+ /**
+ * The resource indicator is invalid.
+ */
+ public static final ErrorObject INVALID_TARGET =
+ new ErrorObject(INVALID_TARGET_CODE, "Improper or disallowed resource indicator", HTTPResponse.SC_FORBIDDEN);
+
+ /**
+ * Constructor.
+ */
+ private OidcError() {
+ // no op
+ }
+
+}
\ No newline at end of file
diff --git a/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/core/OidcEventIds.java b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/core/OidcEventIds.java
index 3c0172a..f86ece8 100644
--- a/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/core/OidcEventIds.java
+++ b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/core/OidcEventIds.java
@@ -81,7 +81,12 @@ public final class OidcEventIds {
* The revocation attempt failed.
*/
@Nonnull @NotEmpty public static final String REVOCATION_FAILED = "RevocationFailed";
-
+
+ /**
+ * The resource indicator is invalid.
+ */
+ @Nonnull @NotEmpty public static final String INVALID_TARGET = "InvalidTarget";
+
/**
* The id_token is invalid.
*/
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list