Skip to content

Commit

Permalink
fix(jans-auth-server): corrected error code for absent redirect_uri i…
Browse files Browse the repository at this point in the history
…n object (fapi)

(caught by fapi1-advanced-final-ensure-request-object-without-redirect-uri-fails, fapi1-advanced-final-ensure-redirect-uri-in-authorization-request)

#801
  • Loading branch information
yuriyz committed Feb 11, 2022
1 parent 89e586a commit f73430c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public void validateRequestObject(JwtAuthorizationRequest jwtRequest, RedirectUr
throw redirectUriResponse.createWebException(AuthorizeErrorResponseType.INVALID_REQUEST_OBJECT);
} else {
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(), "Request object does not have redirect_uri claim."))
.type(MediaType.APPLICATION_JSON_TYPE).build());
}
Expand Down

0 comments on commit f73430c

Please sign in to comment.