I am using OAuth to a provider (LinkedIn).
I want to be able to pass parameters so that when someone signs-up, I can add some additional values at the time the new User is created (I am using Devise).
But how do I do that?
It looks like the link goes to the provider, which then makes a callback to my application. How can I pass parameters from that link?
The easy way to do this is to set the parameters in the session, then access them in the callback.
In your action that redirects to the provider:
In the action that handles the callback from the provider:
Use
deleteto ensure your session remains small for subsequent requests.