mirror of
https://github.com/grafana/grafana.git
synced 2026-08-14 15:15:03 -05:00
Auth Proxy improvements
- adds the option to use ldap groups for authorization in combination with an auth proxy - adds an option to limit where auth proxy requests come from by configure a list of ip's - fixes a security issue, session could be reused
This commit is contained in:
@@ -108,6 +108,8 @@ var (
|
||||
AuthProxyHeaderName string
|
||||
AuthProxyHeaderProperty string
|
||||
AuthProxyAutoSignUp bool
|
||||
AuthProxyLdapSyncTtl int
|
||||
AuthProxyWhitelist string
|
||||
|
||||
// Basic Auth
|
||||
BasicAuthEnabled bool
|
||||
@@ -537,7 +539,10 @@ func NewConfigContext(args *CommandLineArgs) error {
|
||||
AuthProxyHeaderName = authProxy.Key("header_name").String()
|
||||
AuthProxyHeaderProperty = authProxy.Key("header_property").String()
|
||||
AuthProxyAutoSignUp = authProxy.Key("auto_sign_up").MustBool(true)
|
||||
AuthProxyLdapSyncTtl = authProxy.Key("ldap_sync_ttl").MustInt()
|
||||
AuthProxyWhitelist = authProxy.Key("whitelist").String()
|
||||
|
||||
// basic auth
|
||||
authBasic := Cfg.Section("auth.basic")
|
||||
BasicAuthEnabled = authBasic.Key("enabled").MustBool(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user