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

Move JWT to Gitlab::JWT

parent fc2d985b
......@@ -3,7 +3,7 @@ class JwtController < ApplicationController
skip_before_action :verify_authenticity_token
SERVICES = {
'container_registry' => JWT::ContainerRegistryAuthenticationService,
'container_registry' => ::Gitlab::JWT::ContainerRegistryAuthenticationService,
}
def auth
......
module JWT
module Gitlab
module JWT
class ContainerRegistryAuthenticationService < BaseService
def execute
if params[:offline_token]
......@@ -66,4 +67,5 @@ module JWT
Gitlab.config.registry
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