Merge pull request #567 from stianst/master

Added login_hint to keycloak.js
This commit is contained in:
Stian Thorgersen 2014-07-30 14:27:40 +01:00
commit d682701232
2 changed files with 5 additions and 0 deletions

View file

@ -191,6 +191,7 @@ new Keycloak({ url: 'http://localhost/auth', realm: 'myrealm', clientId: 'myApp'
<itemizedlist>
<listitem>redirectUri - specifies the uri to redirect to after login</listitem>
<listitem>prompt - can be set to 'none' to check if the user is logged in already (if not logged in a login form is not displayed)</listitem>
<listitem>loginHint - used to pre-fill the username/email field on the login form</listitem>
</itemizedlist>
</para>
</simplesect>

View file

@ -136,6 +136,10 @@
url += '&prompt=' + options.prompt;
}
if (options && options.loginHint) {
url += '&login_hint=' + options.loginHint;
}
return url;
}