omniauth-linkedin-oauth2 icon indicating copy to clipboard operation
omniauth-linkedin-oauth2 copied to clipboard

Get the original referer

Open jjf21 opened this issue 6 years ago • 1 comments

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 !

jjf21 avatar Apr 24 '18 10:04 jjf21

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.

correlator avatar Jul 25 '18 00:07 correlator