summaryrefslogtreecommitdiff
path: root/app/services/auth
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-07-06 16:26:59 +0300
committerValery Sizov <valery@gitlab.com>2016-07-06 20:58:43 +0300
commit3baed8cb6ddf9d46b653f17135cbffc8e662cedd (patch)
tree836cdccc6609d1d9d3a8ba52c76dadc6267fd738 /app/services/auth
parentcfd5870b62e9d76e564ffc64db1d1281b4a363bb (diff)
downloadgitlab-ce-3baed8cb6ddf9d46b653f17135cbffc8e662cedd.tar.gz
Services: code style fixes, minor refactoringservices_refactoring1
Diffstat (limited to 'app/services/auth')
-rw-r--r--app/services/auth/container_registry_authentication_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb
index e57b95f21ec..e294a962352 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -20,9 +20,11 @@ module Auth
token.issuer = registry.issuer
token.audience = AUDIENCE
token.expire_time = token_expire_at
+
token[:access] = names.map do |name|
{ type: 'repository', name: name, actions: %w(*) }
end
+
token.encoded
end