Commit 9ef9e008 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Move JWT to Gitlab::JWT

parent fc2d985b
...@@ -3,7 +3,7 @@ class JwtController < ApplicationController ...@@ -3,7 +3,7 @@ class JwtController < ApplicationController
skip_before_action :verify_authenticity_token skip_before_action :verify_authenticity_token
SERVICES = { SERVICES = {
'container_registry' => JWT::ContainerRegistryAuthenticationService, 'container_registry' => ::Gitlab::JWT::ContainerRegistryAuthenticationService,
} }
def auth def auth
......
module JWT module Gitlab
module JWT
class ContainerRegistryAuthenticationService < BaseService class ContainerRegistryAuthenticationService < BaseService
def execute def execute
if params[:offline_token] if params[:offline_token]
...@@ -66,4 +67,5 @@ module JWT ...@@ -66,4 +67,5 @@ module JWT
Gitlab.config.registry Gitlab.config.registry
end end
end end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment