<div dir="ltr">Yeah, what I actually did was the 1st choice, we added it to the form action via JavaScript, but somehow the value doesn&#39;t get returned, only the redirect_uri without any query params.<div><br></div><div>I think I&#39;ll have to go with your 2nd option.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 10:09 AM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How do you then set it as &quot;query parameter on the redirect_uri param&quot;? The redirect_uri is part of the form action url, not the form data.<br>
<br>
Currently, I think your options are:<br>
<br>
1. You can use JavaScript to add the checkbox value to the form action before submitting the form<br>
2. Modify TokenService and build your own KC to have TokenService.processLogin extract the checkbox value from the form data and add to redirect_uri<br>
3. Wait until we add customization user profiles and registration form<br>
4. Display a separate registration form on your app when a user first logins<br>
<span class="im HOEnZb"><br>
----- Original Message -----<br>
&gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a>&gt;<br>
</span><div class="HOEnZb"><div class="h5">&gt; To: &quot;Stian Thorgersen&quot; &lt;<a href="mailto:stian@redhat.com">stian@redhat.com</a>&gt;<br>
&gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Tuesday, 16 September, 2014 2:56:12 PM<br>
&gt; Subject: Re: [keycloak-user] Send parameter back after registration<br>
&gt;<br>
&gt; We actually added the checkbox on our login.ftl, with our own theme<br>
&gt; customizations, and we wanted to send that value back when keycloak<br>
&gt; redirects back to our application<br>
&gt;<br>
&gt; On Tue, Sep 16, 2014 at 9:49 AM, Stian Thorgersen &lt;<a href="mailto:stian@redhat.com">stian@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Is the checkbox on your website and you add it to the redirect_uri as a<br>
&gt; &gt; query param? If so it should be included in the url Keycloak redirects to<br>
&gt; &gt; after login.<br>
&gt; &gt;<br>
&gt; &gt; One feature that we want to add is to be able to customize the attributes<br>
&gt; &gt; for the users profiles, as well as configure which are shown on the<br>
&gt; &gt; registration screen. Not sure when we&#39;ll have time to add that though.<br>
&gt; &gt;<br>
&gt; &gt; ----- Original Message -----<br>
&gt; &gt; &gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; &gt; &gt; To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; Sent: Tuesday, 16 September, 2014 2:40:40 PM<br>
&gt; &gt; &gt; Subject: [keycloak-user] Send parameter back after registration<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hello,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I was wondering if there is a way for me to send a parameter back to my<br>
&gt; &gt; &gt; server after a new user registers in Keycloak.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; For example, we have a checkbox that the user can check if he wants to<br>
&gt; &gt; &gt; receive newsletter from our website, and I wanted to send that value<br>
&gt; &gt; back to<br>
&gt; &gt; &gt; us.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I tried setting it as a query parameter on the redirect_uri param, it<br>
&gt; &gt; gets<br>
&gt; &gt; &gt; sent on the request, but it isn&#39;t posted back to us.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Is there a defined way to accomplish this?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thank you again!<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Rodrigo Sasaki<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; keycloak-user mailing list<br>
&gt; &gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Rodrigo Sasaki<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div></div></div>
</div>