mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
14 lines
319 B
Ruby
14 lines
319 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
class TerraformRegistryToken < JWTToken
|
|
class << self
|
|
def from_token(token)
|
|
new.tap do |terraform_registry_token|
|
|
terraform_registry_token['token'] = token.try(:token).presence || token.try(:id).presence
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|