Allow usersFile to be specified for basic or digest auth
This commit is contained in:
parent
91bf627275
commit
7357417f48
5 changed files with 112 additions and 9 deletions
|
@ -241,12 +241,14 @@ type Users []string
|
|||
|
||||
// Basic HTTP basic authentication
|
||||
type Basic struct {
|
||||
Users `mapstructure:","`
|
||||
Users `mapstructure:","`
|
||||
UsersFile string
|
||||
}
|
||||
|
||||
// Digest HTTP authentication
|
||||
type Digest struct {
|
||||
Users `mapstructure:","`
|
||||
Users `mapstructure:","`
|
||||
UsersFile string
|
||||
}
|
||||
|
||||
// CanonicalDomain returns a lower case domain with trim space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue