yahoohung/loopback-component-oauth2-server

How to go on from dialog view?

mahnuh opened this issue · 3 comments

Hi,
I am not entirely sure how to use this component. I figured out most of the stuff I guss, but now I am stuck on the dialog view. How do I go on from here to get a code and the how do I exchange that code for an accessToken?

Any help would be appreciated!
Manuel

Same problem for me, how do I exchange code for accessToken?

Any solution??

You have to do is send a POST request to /account/token with client_id, client_secret, redirect_uri, grant_type = authorization_code, state and code on server side then you can receive the access token.