diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-19 13:57:35 -0400 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-29 16:45:00 +0200 |
commit | 72611f9cfa9014653c0894115af6223687c2eab4 (patch) | |
tree | e5bfb5066fdcbc4bf87fc12035272dd4e533333e /lib/api/auth.rb | |
parent | 0ca8db25f008cd3bc4f2df0f58efd739718323d0 (diff) | |
download | gitlab-ce-72611f9cfa9014653c0894115af6223687c2eab4.tar.gz |
Auth token
Diffstat (limited to 'lib/api/auth.rb')
-rw-r--r-- | lib/api/auth.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/auth.rb b/lib/api/auth.rb index ec944b1dc8c..d769c692754 100644 --- a/lib/api/auth.rb +++ b/lib/api/auth.rb @@ -119,12 +119,13 @@ module API name: @path, actions: @actions ], + iss: Gitlab.config.registry.issuer, exp: Time.now.to_i + 3600 } end def private_key - @private_key ||= OpenSSL::PKey::RSA.new File.read 'config/registry.key' + @private_key ||= OpenSSL::PKey::RSA.new File.read Gitlab.config.registry.key end def encode(payload) |