oauth2 how to get the grant code in order to request access_token ?
-
Hello,
I'm trying to configure OAuth with Fusionauth with my application (api core).
(I configured Fusionauth with user, application and the oauth).When i hit my api endpoint, i do get a redirection to the fusionauth login page with all parameters as described in the documentation.
My question is about the redirect_uri : I understood if the login succeeds, the redirect_uri will be called with code and userState parameter
https://www.piedpiper.com/login?code=+WYT3XemV4f81ghHi4V+RyNwvATDaD4FIj0BpfFC4Wzg=&userState=AuthenticatedIf i understand well, the redirect uri will be called automatically within the workflow ?
If yes, can this redirect_uri be an API endpoint, in order to receive the temporary code, and then send a request for the access_token ?
I tried it but get an errorThank you
-
Yes it works all fine

I didn't understant the redirect_uri had to be the same , stupid me
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login