diff --git a/pom.xml b/pom.xml
index f4f1c5b4..ecfac0d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
org.openconext
oidcng
- 6.1.7
+ 6.1.8-SNAPSHOT
oidcng
diff --git a/src/main/java/oidc/exceptions/JWTRequestURIMismatchException.java b/src/main/java/oidc/exceptions/JWTRequestURIMismatchException.java
new file mode 100644
index 00000000..eeac16e6
--- /dev/null
+++ b/src/main/java/oidc/exceptions/JWTRequestURIMismatchException.java
@@ -0,0 +1,17 @@
+package oidc.exceptions;
+
+import org.springframework.http.HttpStatus;
+import org.springframework.web.bind.annotation.ResponseStatus;
+
+@ResponseStatus(value = HttpStatus.BAD_REQUEST)
+public class JWTRequestURIMismatchException extends BaseException {
+
+ public JWTRequestURIMismatchException(String message) {
+ super(message);
+ }
+
+ @Override
+ public String getErrorCode() {
+ return "invalid_request_uri";
+ }
+}
diff --git a/src/main/java/oidc/exceptions/RedirectMismatchException.java b/src/main/java/oidc/exceptions/RedirectMismatchException.java
index 3b47e9d7..9a3ab04d 100644
--- a/src/main/java/oidc/exceptions/RedirectMismatchException.java
+++ b/src/main/java/oidc/exceptions/RedirectMismatchException.java
@@ -16,6 +16,6 @@ protected boolean suppressStackTrace() {
@Override
public String getErrorCode() {
- return "invalid_request_uri";
+ return "invalid_redirect_uri";
}
}
diff --git a/src/main/java/oidc/model/OpenIDClient.java b/src/main/java/oidc/model/OpenIDClient.java
index 43203912..5b982a97 100644
--- a/src/main/java/oidc/model/OpenIDClient.java
+++ b/src/main/java/oidc/model/OpenIDClient.java
@@ -42,6 +42,7 @@ public class OpenIDClient {
private List scopes;
private List grants;
private List allowedResourceServers;
+ private String jwtRequestUri;
private boolean resourceServer;
private boolean publicClient;
//seconds
@@ -82,6 +83,7 @@ public OpenIDClient(Map root) {
this.clientSecretJWT = (String) metaDataFields.get("clientSecretJWT");
this.logoUrl = (String) metaDataFields.get("logo:0:url");
this.redirectUrls = (List) metaDataFields.get("redirectUrls");
+ this.jwtRequestUri = (String) metaDataFields.get("oidc:jwtRequestUri");
this.grants = (List) metaDataFields.getOrDefault("grants", Collections.singletonList("authorization_code"));
this.allowedResourceServers = ((List