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

    How about a REST API for the oauth2 endpoints?

    Scheduled Pinned Locked Moved
    General Discussion
    2
    2
    435
    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.
    • D
      dhait
      last edited by

      For those customers who want to fully customize the OAuth2 journey (with our own login screens etc), without dealing with FusionAuth theming, it would be really nice to have REST-friendly OAuth2 endpoints.

      Right now a "POST" to the /oauth2/authorize endpoint always returns status 200, with the text of the page telling you about any errors. It would be great if this could be accessed programatically, and let our own backend handle the redirect in the case of success.

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @dhait
        last edited by

        @dhait Hmmm. This issue is due to the OAuth2 specification. If we provided a REST endpoint, it wouldn't be OAuth/OIDC.

        If you want to fully customize the look and feel of the login and registration experience, but not use the FusionAuth hosted login pages, the recommended solution is to code directly against our REST APIs:

        https://fusionauth.io/docs/v1/tech/apis/login

        https://fusionauth.io/docs/v1/tech/apis/registrations

        Does this solve your problem?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

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