Commit 27cd6c75 authored by Valeriy Sizov's avatar Valeriy Sizov

Merge pull request #585 from patthoyts/pt/omniauth-config

Move OmniAuth configuration details into a non-revision controlled file.
parents 341b6d54 6e27350a
...@@ -16,4 +16,5 @@ Vagrantfile ...@@ -16,4 +16,5 @@ Vagrantfile
.vagrant .vagrant
config/gitlab.yml config/gitlab.yml
config/database.yml config/database.yml
config/initializers/omniauth.rb
db/data.yml db/data.yml
...@@ -195,18 +195,9 @@ Devise.setup do |config| ...@@ -195,18 +195,9 @@ Devise.setup do |config|
config.sign_out_via = :delete config.sign_out_via = :delete
# ==> OmniAuth # ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting # To configure a new OmniAuth provider copy and edit omniauth.rb.sample
# up on your models and hooks. # selecting the provider you require.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo' # Check the wiki for more information on setting up on your models
#config.omniauth :ldap,
# :host => 'YOUR_LDAP_SERVER',
# :base => 'THE_BASE_WHERE_YOU_SEARCH_FOR_USERS',
# :uid => 'sAMAccountName',
# :port => 389,
# :method => :plain,
# :bind_dn => 'THE_FULL_DN_OF_THE_USER_YOU_WILL_BIND_WITH',
# :password => 'THE_PASSWORD_OF_THE_BIND_USER'
# ==> Warden configuration # ==> Warden configuration
# If you want to use other strategies, that are not supported by Devise, or # If you want to use other strategies, that are not supported by Devise, or
......
# Copy this file to 'omniauth.rb' and configure it as necessary.
# The wiki has further details on configuring each provider.
Devise.setup do |config|
# config.omniauth :github 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
# config.omniauth :ldap,
# :host => 'YOUR_LDAP_SERVER',
# :base => 'THE_BASE_WHERE_YOU_SEARCH_FOR_USERS',
# :uid => 'sAMAccountName',
# :port => 389,
# :method => :plain,
# :bind_dn => 'THE_FULL_DN_OF_THE_USER_YOU_WILL_BIND_WITH',
# :password => 'THE_PASSWORD_OF_THE_BIND_USER'
end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment