23f8ca88e1
AuthorizeRequest() injects the 'pull' scope if `from` is set unconditionally. If the current token already has that scope, it will be inserted into the scope list twice and `addedScopes` will be set to true, resulting in a new token being fetched that has no net new scopes. Instead, check whether `additionalScopes` are actually new. Signed-off-by: Clayton Coleman <ccoleman@redhat.com> |
||
---|---|---|
.. | ||
auth | ||
transport | ||
blob_writer.go | ||
blob_writer_test.go | ||
errors.go | ||
errors_test.go | ||
repository.go | ||
repository_test.go |