Bug fix double-encoding for query parameter acr_values

Related bug fix in Keycloak version 26.4

space with mutiple values results in → "+" → "%2B"

Reported bug: 
https://github.com/keycloak/keycloak/issues/44125

Signed-off-by: jhgojbis <gh_wipe@hotmail.com>
This commit is contained in:
jhgojbis
2025-11-12 08:53:41 +01:00
committed by Pedro Igor
parent 3c8af6dec5
commit fd99aa6244

View File

@@ -561,7 +561,7 @@ public abstract class AbstractOAuth2IdentityProvider<C extends OAuth2IdentityPro
}
if (parameter != null && !parameter.isEmpty()) {
uriBuilder.queryParam(forwardParameter, URLEncoder.encode(parameter, StandardCharsets.UTF_8));
uriBuilder.queryParam(forwardParameter, parameter);
}
}
}