diff options
author | Andre Guedes <andrebsguedes@gmail.com> | 2016-12-16 01:24:05 -0200 |
---|---|---|
committer | Andre Guedes <andrebsguedes@gmail.com> | 2017-02-22 11:30:11 -0300 |
commit | e4fa80f3b67f1ef30c262cd4df28516ccff6336a (patch) | |
tree | 225b64223d018ca259fcfabd6b725918dfe4d126 /app/services/auth | |
parent | 246df2bd1151d39a04ef553064144eb75ee3e980 (diff) | |
download | gitlab-ce-e4fa80f3b67f1ef30c262cd4df28516ccff6336a.tar.gz |
Fixes broken and missing tests
Diffstat (limited to 'app/services/auth')
-rw-r--r-- | app/services/auth/container_registry_authentication_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb index 6b83b38fa4d..5b2fcdf3b16 100644 --- a/app/services/auth/container_registry_authentication_service.rb +++ b/app/services/auth/container_registry_authentication_service.rb @@ -16,7 +16,8 @@ module Auth { token: authorized_token(scope).encoded } end - def self.full_access_token(names) + def self.full_access_token(*names) + names = names.flatten registry = Gitlab.config.registry token = JSONWebToken::RSAToken.new(registry.key) token.issuer = registry.issuer |