Merge pull request #153 from clems4ever/opt-subdomain-methods
Make per_subdomain_methods optional in configuration filepull/155/head
commit
8fa50482df
|
@ -55,8 +55,10 @@ ldap:
|
|||
#
|
||||
# Note: by default a domain uses "two_factor" method.
|
||||
#
|
||||
# Note: 'overriden_methods' is a dictionary where keys must be subdomains and
|
||||
# Note: 'per_subdomain_methods' is a dictionary where keys must be subdomains and
|
||||
# values must be one of the two possible methods.
|
||||
#
|
||||
# Note: 'per_subdomain_methods' is optional.
|
||||
authentication_methods:
|
||||
default_method: two_factor
|
||||
per_subdomain_methods:
|
||||
|
|
|
@ -47,6 +47,21 @@ ldap:
|
|||
user: cn=admin,dc=example,dc=com
|
||||
password: password
|
||||
|
||||
# Authentication methods
|
||||
#
|
||||
# Authentication methods can be defined per subdomain.
|
||||
# There are currently two available methods: "basic_auth" and "two_factor"
|
||||
#
|
||||
# Note: by default a domain uses "two_factor" method.
|
||||
#
|
||||
# Note: 'per_subdomain_methods' is a dictionary where keys must be subdomains and
|
||||
# values must be one of the two possible methods.
|
||||
#
|
||||
# Note: 'per_subdomain_methods' is optional.
|
||||
authentication_methods:
|
||||
default_method: two_factor
|
||||
per_subdomain_methods:
|
||||
basicauth.test.local: basic_auth
|
||||
|
||||
# Access Control
|
||||
#
|
||||
|
|
|
@ -116,7 +116,7 @@ declare type AuthenticationMethodPerSubdomain = { [subdomain: string]: Authentic
|
|||
|
||||
export interface AuthenticationMethodsConfiguration {
|
||||
default_method: AuthenticationMethod;
|
||||
per_subdomain_methods: AuthenticationMethodPerSubdomain;
|
||||
per_subdomain_methods?: AuthenticationMethodPerSubdomain;
|
||||
}
|
||||
|
||||
export interface UserConfiguration {
|
||||
|
|
Loading…
Reference in New Issue