authx
authx copied to clipboard
Intrinsic scopes may cause creation of unnecessary new authorizations
The refresh token logic is supposed to work as follows:
- validate the request/refresh token
- look for an existing active authorization tied to the grant with the same scopes
- if none exists, create a new authorization
- generate a token from that authorization
It appears that intrinsic scopes may not be factored into the comparison, such that when the requested scopes do not include the intrinsic scope, a new authorization can get created unnecessarily.