While checking the compliance of the refresh_token grant. I discovered that the optional scope parameter in the body is ignored.
|
return Promise.bind(this) |
|
.then(function() { |
|
return this.getRefreshToken(request, client); |
|
}) |
|
.tap(function(token) { |
|
return this.revokeToken(token); |
|
}) |
|
.then(function(token) { |
|
return this.saveToken(token.user, client, token.scope); |
|
}); |
https://datatracker.ietf.org/doc/html/rfc6749#section-6
While checking the compliance of the
refresh_tokengrant. I discovered that the optional scope parameter in the body is ignored.node-oauth2-server/lib/grant-types/refresh-token-grant-type.js
Lines 64 to 73 in 1b91ddc
https://datatracker.ietf.org/doc/html/rfc6749#section-6