How about a REST API for the oauth2 endpoints?
-
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. -
@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?