On Oct 6, 2015, at 1:38 PM, Stian Thorgersen
<sthorger(a)redhat.com> wrote:
+1 We should also add register() so it's consistent with login and account
management
On 6 October 2015 at 13:32, Libor Krzyzanek <lkrzyzan(a)redhat.com
<mailto:lkrzyzan@redhat.com>> wrote:
I’m checking the keycloak.js source code and it seems that createLoginUrl already support
it. Just pass in options 'options.action == ‘register’’ and it should create a
registration page url.
See
https://github.com/keycloak/keycloak/blob/master/integration/js/src/main/...
<
https://github.com/keycloak/keycloak/blob/master/integration/js/src/main/...
From keycalok.js API point of view would say there could be a new method
“createRegistrationUrl” method which will be just a shortcut for calling the
createLoginUrl with options.action=‘register'.
WDYT?
Libor Krzyžanek
jboss.org <
http://jboss.org/> Development Team
> On Oct 6, 2015, at 12:37 PM, Stian Thorgersen <sthorger(a)redhat.com
<mailto:sthorger@redhat.com>> wrote:
>
> True would be nice to add to keycloak.js - do you want to create a jira and maybe
even a PR?
>
> On 6 October 2015 at 12:28, Libor Krzyzanek <lkrzyzan(a)redhat.com
<mailto:lkrzyzan@redhat.com>> wrote:
> Yep works. Thanks for the tip. We can handle it in JS implementation.
>
> Wouldn’t be useful to have extra methods in Keycloak JS adapter for it like you have
for login … login(options), createLoginUrl(options) methods.
> It would be super convenient then.
>
> Thanks,
>
> Libor Krzyžanek
>
jboss.org <
http://jboss.org/> Development Team
>
>> On Oct 6, 2015, at 12:09 PM, Stian Thorgersen <sthorger(a)redhat.com
<mailto:sthorger@redhat.com>> wrote:
>>
>> Just swap the last 'auth' to 'registrations' in the link and
you'll get the registration page instead of login page
>>
>> On 6 October 2015 at 11:12, Libor Krzyzanek <lkrzyzan(a)redhat.com
<mailto:lkrzyzan@redhat.com>> wrote:
>> Hi,
>> is it possible to have a unique URL resp. link for registration page on website?
>> JS Adapter (
http://keycloak.github.io/docs/userguide/html/ch08.html#d4e1098
<
http://keycloak.github.io/docs/userguide/html/ch08.html#d4e1098>) has only login
and logout actions.
>>
>> Right now there is only login page as entry point for clients.
>>
>> It’s quite common to have separate links for Login and Register on website
because going directly to registration page makes registration process easier.
>>
>> Other scenario is promoting registration via e-mail like “Register for free.
Click on this link …"
>> It would be great to have bookmarkable URL for such use case.
>>
>> Thanks,
>>
>> Libor
>>
>> Libor Krzyžanek
>>
jboss.org <
http://jboss.org/> Development Team
>>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user(a)lists.jboss.org <mailto:keycloak-user@lists.jboss.org>
>>
https://lists.jboss.org/mailman/listinfo/keycloak-user
<
https://lists.jboss.org/mailman/listinfo/keycloak-user>
>>
>
>