Skip to content

Commit 3e9110a

Browse files
Fix the error response constructed in ClientRegistrationEndpoint.validateCertificate(HttpServletRequest).
The second parametger given to the OBBDCRProcessor.errorResponse method should be an error code, not a format string for the error description.
1 parent efbd9ef commit 3e9110a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/authlete/jaxrs/server/api/ClientRegistrationEndpoint.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ private static void validateCertificate(HttpServletRequest request)
203203
catch (GeneralSecurityException e)
204204
{
205205
throw OBBDCRProcessor.errorResponse(Status.UNAUTHORIZED,
206-
"Client certificate validation failed", e.getMessage());
206+
"invalid_client",
207+
String.format("Client certificate validation failed: %s", e.getMessage()));
207208
}
208209
}
209210
}

0 commit comments

Comments
 (0)