FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    oauth2 how to get the grant code in order to request access_token ?

    Scheduled Pinned Locked Moved
    General Discussion
    1
    2
    438
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      quent
      last edited by quent

      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 error

      Thank you

      1 Reply Last reply Reply Quote 0
      • Q
        quent
        last edited by

        Yes it works all fine 🙂
        I didn't understant the redirect_uri had to be the same , stupid me 🙂

        1 Reply Last reply Reply Quote 0
        • First post
          Last post