yahoohung / loopback-component-oauth2-server

OAuth 2.0 provider for LoopBack version 3
Other
3 stars 1 forks source link

How to go on from dialog view? #2

Open mahnuh opened 6 years ago

mahnuh commented 6 years ago

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

mithoog commented 5 years ago

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

ravitomar7 commented 4 years ago

Any solution??

yahoohung commented 2 years ago

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.