Commit 5d043b88ddebc7dafac21737a4fefc7164c78a3f

Authored by Antonio Terceiro
1 parent 0aca6012

gitlab authentication via Remote-User

Does not quite work yet.
cookbooks/gitlab/recipes/default.rb
... ... @@ -74,8 +74,6 @@ template '/etc/nginx/conf.d/gitlab.conf' do
74 74 notifies :reload, 'service[nginx]'
75 75 end
76 76  
77   -# TODO: Remote-User authentication
78   -
79 77 service 'gitlab' do
80 78 action :enable
81 79 supports :restart => true
... ...
cookbooks/gitlab/templates/gitlab.yml.erb
... ... @@ -17,14 +17,11 @@ production: &base
17 17 plain_url: "http://cdn.libravatar.org/avatar/%{hash}?s=%{size}&d=identicon"
18 18 ssl_url: "https://seccdn.libravatar.org/avatar/%{hash}?s=%{size}&d=identicon"
19 19 omniauth:
20   - # Allow login via Twitter, Google, etc. using OmniAuth providers
21   - enabled: false
22   - allow_single_sign_on: false
23   - block_auto_created_users: true
  20 + enabled: true
  21 + allow_single_sign_on: true
  22 + block_auto_created_users: false
24 23 providers:
25   - # - { name: 'google_oauth2', app_id: 'YOUR APP ID',
26   - # app_secret: 'YOUR APP SECRET',
27   - # args: { access_type: 'offline', approval_prompt: '' } }
  24 + - { name: 'RemoteUser' }
28 25 satellites:
29 26 path: /var/lib/gitlab/satellites
30 27 timeout: 30
... ...