strongloop / loopback-example-passport

LoopBack example for facebook login
Other
185 stars 134 forks source link

Adding additional parameters to oAuth request #40

Closed SyRenity closed 7 years ago

SyRenity commented 9 years ago

Is there any way to add additional parameters to the OAuth2 request?

Similar to: https://testing/oauth/authorize? response_type=code& client_id=YOUR_CLIENT_ID& redirect_uri=YOUR_CALLBACK_URL& scope=send& meta[test1]=1& meta[test2]=2& meta[test3]=3

raymondfeng commented 9 years ago

You can subclass a given oAuth2 strategy to override the following methods:

https://github.com/jaredhanson/passport-oauth2/blob/master/lib/strategy.js#L247-L278

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.