distribution/registry
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
..
api api: url typo in specification 2017-07-18 14:48:55 -07:00
auth context: remove definition of Context 2017-08-11 15:53:31 -07:00
client If the request already has the scope, don't force token fetch 2017-08-23 19:27:37 -04:00
handlers context: remove definition of Context 2017-08-11 15:53:31 -07:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware context: remove definition of Context 2017-08-11 15:53:31 -07:00
proxy registry: remove dependency on logrus for client 2017-08-15 10:28:38 -07:00
storage registry: remove dependency on logrus for client 2017-08-15 10:28:38 -07:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry_test.go Allow registry clients to connect via http2 2016-08-13 22:07:42 -04:00
registry.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
root.go context: remove definition of Context 2017-08-11 15:53:31 -07:00