Closed
Description
When there is an invalid scope passed, there is still an accessToken
and refreshToken
generated.
Code
node-oauth2-server/lib/grant-types/password-grant-type.js
Lines 105 to 127 in 0154165
Suggestion
Move this.validateScope(user, client, scope)
out of the array and check this before generating the tokens.
Use case
We use JWT's and only an internal token id is saved instead of the full JWT string. This means generating the token automatically means saving the token. So we are not actually using the saveToken
function.
Metadata
Metadata
Assignees
Labels
No labels