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=Authenticated
If 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