decioferreira / omniauth-linkedin-oauth2

A LinkedIn OAuth2 strategy for OmniAuth.
MIT License
117 stars 147 forks source link

Get the original referer #40

Open jjf21 opened 6 years ago

jjf21 commented 6 years ago

I can't find a way to get the page URL from which the user clicked the linkedin button, is there an easy way to do it ?

Thanks !

correlator commented 6 years ago

Did you end up figuring this out?

I was looking at this and it seems like the only information you could return is the state parameter. https://developer.linkedin.com/docs/oauth2 (section2). I'm thinking it could be possible to encode a user's ID, or the url of the page you wish to redirect them to and include that as the state. Would likely have to add that to both the sending and returned parameters.