Skip to content

Commit

Permalink
fix(jans-auth-server): corrected jarm error response
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz committed Jan 28, 2022
1 parent 5cae544 commit 1d4b53b
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -792,14 +792,11 @@ private ResponseMode extractResponseMode(String request) {

private void fillRedirectUriResponseforJARM(RedirectUriResponse redirectUriResponse, Jwt jwt, Client client) {
try {
if (jwt == null) {
return;
}

JwtClaims jwtClaims = jwt.getClaims();
String tempRedirectUri = jwtClaims.getClaimAsString("redirect_uri");
if (tempRedirectUri != null) {
redirectUriResponse.getRedirectUri().setBaseRedirectUri(URLDecoder.decode(tempRedirectUri, "UTF-8"));
if (jwt != null) {
String tempRedirectUri = jwt.getClaims().getClaimAsString("redirect_uri");
if (StringUtils.isNotBlank(tempRedirectUri)) {
redirectUriResponse.getRedirectUri().setBaseRedirectUri(URLDecoder.decode(tempRedirectUri, "UTF-8"));
}
}
redirectUriResponse.getRedirectUri().setResponseMode(ResponseMode.JWT);
String clientId = client.getClientId();
Expand Down

0 comments on commit 1d4b53b

Please sign in to comment.