Welcome to mirror list, hosted at ThFree Co, Russian Federation.

jwt_v2.rb « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 278353220e42c2615267e0040f8208345c7f1dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module Ci
    class JwtV2 < Jwt
      private

      def reserved_claims
        super.merge(
          iss: Settings.gitlab.base_url,
          sub:  "project_path:#{project.full_path}:ref_type:#{ref_type}:ref:#{source_ref}",
          aud: Settings.gitlab.base_url
        )
      end
    end
  end
end