node-oauth2-server icon indicating copy to clipboard operation
node-oauth2-server copied to clipboard

Remove validateScope check from auth_code grant type

Open thomseddon opened this issue 5 years ago • 0 comments

Per https://github.com/oauthjs/node-oauth2-server/pull/629#issuecomment-650564756

As per https://tools.ietf.org/html/rfc6749#section-4.1.1 the scope is a required parameter for the authorisation request (which #451 fixes), and is not actually defined for the access token request (which is where the library currently tries to perform scope validation here)

We should remove the validateScope call from the auth_code grant, as the scope parameter is not expected in the token request

thomseddon avatar Jun 27 '20 14:06 thomseddon