distribution/registry/client/auth
Clayton Coleman 23f8ca88e1
If the request already has the scope, don't force token fetch
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>
2017-08-23 19:27:37 -04:00
..
challenge Refactor authorization challenges to its own package 2016-11-09 15:27:40 -08:00
api_version.go Fix typo in Version doc 2015-07-08 11:02:47 -07:00
session_test.go Refactor authorization challenges to its own package 2016-11-09 15:27:40 -08:00
session.go If the request already has the scope, don't force token fetch 2017-08-23 19:27:37 -04:00