<div dir="ltr">+1 Do you want to add to js-console as well?</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 October 2015 at 15:30, Libor Krzyzanek <span dir="ltr"><<a href="mailto:lkrzyzan@redhat.com" target="_blank">lkrzyzan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Yep sounds good.<div><br></div><div><a href="https://issues.jboss.org/browse/KEYCLOAK-1904" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-1904</a></div><div><br></div><div>I could prepare a PR this week.</div><div>The show case of using a new API could be in <a href="https://github.com/keycloak/keycloak/tree/master/examples/js-console" target="_blank">https://github.com/keycloak/keycloak/tree/master/examples/js-console</a>.</div><div><div><span class=""><br><div>
Libor Krzyžanek<br><a href="http://jboss.org" target="_blank">jboss.org</a> Development Team
</div>
<br></span><div><div class="h5"><div><blockquote type="cite"><div>On Oct 6, 2015, at 1:38 PM, Stian Thorgersen <<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>> wrote:</div><br><div><div dir="ltr">+1 We should also add register() so it's consistent with login and account management</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 October 2015 at 13:32, Libor Krzyzanek <span dir="ltr"><<a href="mailto:lkrzyzan@redhat.com" target="_blank">lkrzyzan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">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.<div><br><div>See <a href="https://github.com/keycloak/keycloak/blob/master/integration/js/src/main/resources/keycloak.js#L144" target="_blank">https://github.com/keycloak/keycloak/blob/master/integration/js/src/main/resources/keycloak.js#L144</a></div><div><br></div><div>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 <span style="color:rgb(121,93,163);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:16.8px;white-space:pre-wrap;background-color:rgb(255,255,255)">createLoginUrl with options.action=‘register'.</span></div><div><div><font color="#795da3" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></font></div><div><font color="#795da3" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)">WDYT?</span></font></div><div><br></div><div><span><br><div>
Libor Krzyžanek<br><a href="http://jboss.org/" target="_blank">jboss.org</a> Development Team
</div>
<br></span><div><div><div><blockquote type="cite"><div>On Oct 6, 2015, at 12:37 PM, Stian Thorgersen <<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>> wrote:</div><br><div><div dir="ltr">True would be nice to add to keycloak.js - do you want to create a jira and maybe even a PR?</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 October 2015 at 12:28, Libor Krzyzanek <span dir="ltr"><<a href="mailto:lkrzyzan@redhat.com" target="_blank">lkrzyzan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Yep works. Thanks for the tip. We can handle it in JS implementation.<div><br></div><div>Wouldn’t be useful to have extra methods in Keycloak JS adapter for it like you have for login … login(options), createLoginUrl(options) methods.</div><div>It would be super convenient then.</div><div><br></div><div>Thanks,</div><div><span><br><div>
Libor Krzyžanek<br><a href="http://jboss.org/" target="_blank">jboss.org</a> Development Team
</div>
<br></span><div><div><div><blockquote type="cite"><div>On Oct 6, 2015, at 12:09 PM, Stian Thorgersen <<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>> wrote:</div><br><div><div dir="ltr">Just swap the last 'auth' to 'registrations' in the link and you'll get the registration page instead of login page</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 October 2015 at 11:12, Libor Krzyzanek <span dir="ltr"><<a href="mailto:lkrzyzan@redhat.com" target="_blank">lkrzyzan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div>is it possible to have a unique URL resp. link for registration page on website?</div><div>JS Adapter (<a href="http://keycloak.github.io/docs/userguide/html/ch08.html#d4e1098" target="_blank">http://keycloak.github.io/docs/userguide/html/ch08.html#d4e1098</a>) has only login and logout actions.</div><div><br></div><div>Right now there is only login page as entry point for clients.</div><div><br></div><div>It’s quite common to have separate links for Login and Register on website because going directly to registration page makes registration process easier.</div><div><br></div><div>Other scenario is promoting registration via e-mail like “Register for free. Click on this link …"</div><div>It would be great to have bookmarkable URL for such use case.</div><div><br></div><div>Thanks,</div><div><br></div><div>Libor</div><div><br><div>
Libor Krzyžanek<br><a href="http://jboss.org/" target="_blank">jboss.org</a> Development Team
</div>
<br></div></div><br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>