jaredhanson / passport-openidconnect

OpenID Connect authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-openidconnect/?utm_source=github&utm_medium=referral&utm_campaign=passport-openidconnect&utm_content=about
MIT License
191 stars 177 forks source link

Specific parameter for getting access token ? #59

Open Tmostafa opened 6 years ago

Tmostafa commented 6 years ago

I wanna use your clean and nice code in my project. but i have a critical issue about that. I want to pass specific data for getting access token. for example i wanna pass new code that generated from client id and client secret. How i can add that ?

curl -k -s -v -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: Basic b1BwcEJ5S0IwcXVPOjA3OGQ4MmQzZmVhYTQ1YzI5YmM3YTYxYTBmYWI1OTc5" -X POST 'https://localhost:5050/token' -d 'grant_type=authorization_code&code=798e589b5d4d4859b5a071cb6f3c6526&redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb'