Refactorn oauth & ldap

This commit is contained in:
Dmitriy Zaporozhets 2012-09-12 09:23:16 +03:00
parent fa4150d47d
commit 048d47e626
4 changed files with 176 additions and 55 deletions

View file

@ -42,7 +42,16 @@ ldap:
password: '_the_password_of_the_bind_user'
omniauth:
enabled: false
# Enable ability for users
# to login via twitter, google ..
enabled: true
# IMPORTANT!
# It allows user to login without having user account
allow_single_sign_on: false
block_auto_created_users: true
# Auth providers
providers:
# - { name: 'google_oauth2', app_id: 'YOUR APP ID',
# app_secret: 'YOUR APP SECRET',
@ -51,10 +60,6 @@ omniauth:
# app_secret: 'YOUR APP SECRET'}
# - { name: 'github', app_id: 'YOUR APP ID',
# app_secret: 'YOUR APP SECRET' }
# IMPORTANT!
# It allows user to login without having user account
allow_single_sign_on: false
block_auto_created_users: true
#