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
    2 Posts 1 Posters 2.0k Views
    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

        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
        • First post
          Last post