Sha256: d76f7155c89402f54367e643c76528c4ea21699f80da5da322152f0329898bfe

Contents?: true

Size: 1010 Bytes

Versions: 34

Compression:

Stored size: 1010 Bytes

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Runtime
      module OmnibusConfigurations
        class GithubOauth < Default
          def configuration
            Runtime::Env.require_github_oauth_environment!

            <<~OMNIBUS
              gitlab_rails['omniauth_enabled'] = true
              gitlab_rails['omniauth_allow_single_sign_on'] = ['github']
              gitlab_rails['omniauth_block_auto_created_users'] = false
              gitlab_rails['omniauth_providers'] = [
                {
                  name: 'github',
                  app_id: '$QA_GITHUB_OAUTH_APP_ID',
                  app_secret: '$QA_GITHUB_OAUTH_APP_SECRET',
                  url: 'https://github.com/',
                  verify_ssl: false,
                  args: { scope: 'user:email' }
                }
              ]
              letsencrypt['enable'] = false
              external_url '<%= gitlab.address %>'
            OMNIBUS
          end
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
gitlab-qa-15.0.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.21.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.20.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.19.2 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.19.1 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.19.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.18.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.17.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.16.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.15.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.14.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.13.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.12.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.11.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.9.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.8.1 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.8.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.7.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.6.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb
gitlab-qa-14.5.0 lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb