Class: Gitlab::QA::Runtime::OmnibusConfigurations::GithubOauth

Inherits:
Default show all
Defined in:
lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb

Constant Summary

Constants inherited from Gitlab::QA::Runtime::OmnibusConfiguration

Gitlab::QA::Runtime::OmnibusConfiguration::ERB_PATTERN

Instance Method Summary collapse

Methods inherited from Default

configuration

Methods inherited from Gitlab::QA::Runtime::OmnibusConfiguration

#<<, #exec_commands, #expand_config_template, #initialize, #prepare, #sanitize!, #to_s

Constructor Details

This class inherits a constructor from Gitlab::QA::Runtime::OmnibusConfiguration

Instance Method Details

#configurationObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/gitlab/qa/runtime/omnibus_configurations/github_oauth.rb', line 8

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