• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
441
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 8 Dec 2022, 15:32

    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.

    D 1 Reply Last reply 10 Dec 2022, 22:06 Reply Quote 0
    • D
      dan @dhait
      last edited by 10 Dec 2022, 22:06

      @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
      1 out of 2
      • First post
        1/2
        Last post