Added login_hint to keycloak.js

This commit is contained in:
Stian Thorgersen 2014-07-30 14:27:14 +01:00
parent 54a7761e15
commit 544883ca9f
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> <itemizedlist>
<listitem>redirectUri - specifies the uri to redirect to after login</listitem> <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>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> </itemizedlist>
</para> </para>
</simplesect> </simplesect>

View file

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