KEYCLOAK-8318 Workaround ELY-1525 similarly to OIDC adapter

This commit is contained in:
Hynek Mlnarik 2019-07-15 13:05:43 +02:00 committed by Hynek Mlnařík
parent 3d4283fac9
commit 67eb0c3079

View file

@ -181,7 +181,18 @@ class ElytronHttpFacade implements HttpFacade {
@Override @Override
public String getQueryParamValue(String param) { public String getQueryParamValue(String param) {
return request.getFirstParameterValue(param); URI requestURI = request.getRequestURI();
String query = requestURI.getQuery();
if (query != null) {
String[] parameters = query.split("&");
for (String parameter : parameters) {
String[] keyValue = parameter.split("=");
if (keyValue[0].equals(param)) {
return keyValue[1];
}
}
}
return null;
} }
@Override @Override