URI encode clientId for referrer parameter
This commit is contained in:
parent
bde9944449
commit
740943290c
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ var Keycloak = function (config) {
|
||||||
kc.createAccountUrl = function(options) {
|
kc.createAccountUrl = function(options) {
|
||||||
var url = getRealmUrl()
|
var url = getRealmUrl()
|
||||||
+ '/account'
|
+ '/account'
|
||||||
+ '?referrer=' + kc.clientId
|
+ '?referrer=' + encodeURIComponent(kc.clientId)
|
||||||
+ '&referrer_uri=' + encodeURIComponent(adapter.redirectUri(options));
|
+ '&referrer_uri=' + encodeURIComponent(adapter.redirectUri(options));
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
|
|
Loading…
Reference in a new issue