Skip to content

Commit

Permalink
fix(jans-auth-server): error code correction unregister redirect_uri (#…
Browse files Browse the repository at this point in the history
…814) #816

Corrected the error code for unregistered redirect URI.
  • Loading branch information
HemantKMehta authored Feb 14, 2022
1 parent c303bbc commit fe4d6a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void validateRequestObject(JwtAuthorizationRequest jwtRequest, RedirectUr
if (redirectUri != null && redirectionUriService.validateRedirectionUri(client, redirectUri) == null) {
log.error(" unregistered redirect uri");
throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
.entity(errorResponseFactory.getErrorAsJson(AuthorizeErrorResponseType.INVALID_REQUEST_REDIRECT_URI,
.entity(errorResponseFactory.getErrorAsJson(AuthorizeErrorResponseType.INVALID_REQUEST_OBJECT,
jwtRequest.getState(), "The request has unregistered request_uri"))
.type(MediaType.APPLICATION_JSON_TYPE).build());
}
Expand Down

0 comments on commit fe4d6a0

Please sign in to comment.