oauth2orize icon indicating copy to clipboard operation
oauth2orize copied to clipboard

When using auth_code grant, code redirects with query params, token with hash

Open facultymatt opened this issue 9 years ago • 1 comments

When you request an auth_code grant, there is a difference in the redirect between code and token.

Code: https://github.com/jaredhanson/oauth2orize/blob/master/lib/grant/code.js#L138

Token: https://github.com/jaredhanson/oauth2orize/blob/master/lib/grant/token.js#L145

What is the reasoning for this difference?

facultymatt avatar Jul 09 '15 13:07 facultymatt

Check the sections about Authorization Code Grant and Implicit Grant in RFC6749 for more information.

paroga avatar Aug 22 '15 08:08 paroga