panva / openid-client

OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
MIT License
1.83k stars 392 forks source link

Getting Access Token #144

Closed jameshreaver closed 5 years ago

jameshreaver commented 5 years ago

Hello I am using oidc-provider and openid-client. Looking at the docs and at the other issues, I cannot understand how to exchange the authorisation code (which I get from request.query.code) for a token set in the authorisation flow. Which function should I call? authorisationCallback? What response_type should I set? When I try I get 'access_token missing from response'. What should the configuration be on the provider side for it to provide an access token?

jameshreaver commented 5 years ago

Resolved! The issue was a redirect uri mismatch. :+1: