Fix parameter encoding in JS adapter
- fixes https://issues.jboss.org/browse/KEYCLOAK-2047 - relates to keycloak/keycloak-js-bower#7
This commit is contained in:
parent
2b23497f92
commit
7ef747e7c4
1 changed files with 5 additions and 5 deletions
|
@ -153,23 +153,23 @@
|
||||||
+ '&response_type=code';
|
+ '&response_type=code';
|
||||||
|
|
||||||
if (options && options.prompt) {
|
if (options && options.prompt) {
|
||||||
url += '&prompt=' + options.prompt;
|
url += '&prompt=' + encodeURIComponent(options.prompt);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options && options.loginHint) {
|
if (options && options.loginHint) {
|
||||||
url += '&login_hint=' + options.loginHint;
|
url += '&login_hint=' + encodeURIComponent(options.loginHint);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options && options.idpHint) {
|
if (options && options.idpHint) {
|
||||||
url += '&kc_idp_hint=' + options.idpHint;
|
url += '&kc_idp_hint=' + encodeURIComponent(options.idpHint);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options && options.scope) {
|
if (options && options.scope) {
|
||||||
url += '&scope=' + options.scope;
|
url += '&scope=' + encodeURIComponent(options.scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options && options.locale) {
|
if (options && options.locale) {
|
||||||
url += '&ui_locales=' + options.locale;
|
url += '&ui_locales=' + encodeURIComponent(options.locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
|
|
Loading…
Reference in a new issue