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!

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