[keycloak-user] URL/Link for registration page

Libor Krzyzanek lkrzyzan at redhat.com
Tue Oct 6 09:30:00 EDT 2015


Yep sounds good.

https://issues.jboss.org/browse/KEYCLOAK-1904 <https://issues.jboss.org/browse/KEYCLOAK-1904>

I could prepare a PR this week.
The show case of using a new API could be in https://github.com/keycloak/keycloak/tree/master/examples/js-console <https://github.com/keycloak/keycloak/tree/master/examples/js-console>.

Libor Krzyžanek
jboss.org Development Team

> On Oct 6, 2015, at 1:38 PM, Stian Thorgersen <sthorger at 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 at redhat.com <mailto:lkrzyzan at 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/resources/keycloak.js#L144 <https://github.com/keycloak/keycloak/blob/master/integration/js/src/main/resources/keycloak.js#L144>
> 
> 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 at redhat.com <mailto:sthorger at 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 at redhat.com <mailto:lkrzyzan at 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 at redhat.com <mailto:sthorger at 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 at redhat.com <mailto:lkrzyzan at 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 at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>>> https://lists.jboss.org/mailman/listinfo/keycloak-user <https://lists.jboss.org/mailman/listinfo/keycloak-user>
>>> 
>> 
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151006/7aef4e6e/attachment.html 


More information about the keycloak-user mailing list