authx icon indicating copy to clipboard operation
authx copied to clipboard

Intrinsic scopes may cause creation of unnecessary new authorizations

Open mike-marcacci opened this issue 4 years ago • 0 comments

The refresh token logic is supposed to work as follows:

  1. validate the request/refresh token
  2. look for an existing active authorization tied to the grant with the same scopes
  3. if none exists, create a new authorization
  4. 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.

mike-marcacci avatar Apr 13 '21 23:04 mike-marcacci