jaredhanson / oauth2orize

OAuth 2.0 authorization server toolkit for Node.js.

Home Page:https://www.oauth2orize.org?utm_source=github&utm_medium=referral&utm_campaign=oauth2orize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to return json in decision endpoint

blanchma opened this issue · comments

Currently, decision try to do a redirect. I'm using oauth2 as client in a React front-end which means the redirect is something I want to handle myself in the front-end. Is there anyway to handle the response of decision?

Can you provide any details as to how you are making OAuth authorization requests, and why JSON would be preferred over redirects?

@jaredhanson I research more and this is not complain with OAuth2 specs. My intention was to return a JSON with the redirect URI there instead of an opaqueredirect.