Move JWT to Gitlab::JWT
This commit is contained in:
parent
fc2d985bfa
commit
9ef9e008fe
2 changed files with 61 additions and 59 deletions
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
module Gitlab
|
||||||
module JWT
|
module JWT
|
||||||
class ContainerRegistryAuthenticationService < BaseService
|
class ContainerRegistryAuthenticationService < BaseService
|
||||||
def execute
|
def execute
|
||||||
|
@ -67,3 +68,4 @@ module JWT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue