thephpleague / oauth1-client

OAuth 1 Client
MIT License
968 stars 73 forks source link

oAuth 1.0 - Passing additional parameters #94

Closed luciano88 closed 4 years ago

luciano88 commented 6 years ago

How can I pass extra parameters (i.e. my user id) in the oAuth 1.0 process and receive them back? In oAuth 2 I use the "state" variable...

Thanks, Luciano

bencorlett commented 6 years ago

Hi, I'm not sure what you mean.

Exactly when did you want to pass additional parameters?

luciano88 commented 6 years ago

Hi Ben, I needed to pass parameters throughout the entire authentication process, starting from retrieving request token and getting it back in the callback. I solved the issue setting GET parameters in the callback uri. It's a little bit tricky but it works :)