[keycloak-user] Send parameter back after registration

Stian Thorgersen stian at redhat.com
Tue Sep 16 09:09:51 EDT 2014


How do you then set it as "query parameter on the redirect_uri param"? The redirect_uri is part of the form action url, not the form data.

Currently, I think your options are:

1. You can use JavaScript to add the checkbox value to the form action before submitting the form
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
3. Wait until we add customization user profiles and registration form
4. Display a separate registration form on your app when a user first logins

----- Original Message -----
> From: "Rodrigo Sasaki" <rodrigopsasaki at gmail.com>
> To: "Stian Thorgersen" <stian at redhat.com>
> Cc: keycloak-user at lists.jboss.org
> Sent: Tuesday, 16 September, 2014 2:56:12 PM
> Subject: Re: [keycloak-user] Send parameter back after registration
> 
> We actually added the checkbox on our login.ftl, with our own theme
> customizations, and we wanted to send that value back when keycloak
> redirects back to our application
> 
> On Tue, Sep 16, 2014 at 9:49 AM, Stian Thorgersen <stian at redhat.com> wrote:
> 
> > Is the checkbox on your website and you add it to the redirect_uri as a
> > query param? If so it should be included in the url Keycloak redirects to
> > after login.
> >
> > One feature that we want to add is to be able to customize the attributes
> > for the users profiles, as well as configure which are shown on the
> > registration screen. Not sure when we'll have time to add that though.
> >
> > ----- Original Message -----
> > > From: "Rodrigo Sasaki" <rodrigopsasaki at gmail.com>
> > > To: keycloak-user at lists.jboss.org
> > > Sent: Tuesday, 16 September, 2014 2:40:40 PM
> > > Subject: [keycloak-user] Send parameter back after registration
> > >
> > > Hello,
> > >
> > > I was wondering if there is a way for me to send a parameter back to my
> > > server after a new user registers in Keycloak.
> > >
> > > For example, we have a checkbox that the user can check if he wants to
> > > receive newsletter from our website, and I wanted to send that value
> > back to
> > > us.
> > >
> > > I tried setting it as a query parameter on the redirect_uri param, it
> > gets
> > > sent on the request, but it isn't posted back to us.
> > >
> > > Is there a defined way to accomplish this?
> > >
> > > Thank you again!
> > >
> > > --
> > > Rodrigo Sasaki
> > >
> > > _______________________________________________
> > > keycloak-user mailing list
> > > keycloak-user at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >
> 
> 
> 
> --
> Rodrigo Sasaki
> 


More information about the keycloak-user mailing list