Refactorn oauth & ldap
This commit is contained in:
parent
fa4150d47d
commit
048d47e626
4 changed files with 176 additions and 55 deletions
|
@ -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
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue