mirror of https://github.com/authelia/authelia.git
13 lines
698 B
Go
13 lines
698 B
Go
package schema
|
|
|
|
import "net"
|
|
|
|
type Definitions struct {
|
|
Network map[string][]*net.IPNet `koanf:"network" json:"network" jsonschema:"title=Network Definitions" jsonschema_description:"Networks CIDR ranges that can be utilized elsewhere in the configuration."`
|
|
UserAttributes map[string]UserAttribute `koanf:"user_attributes" json:"user_attributes" jsonschema:"title=User Attributes" jsonschema_description:"User attributes derived from other attributes."`
|
|
}
|
|
|
|
type UserAttribute struct {
|
|
Expression string `koanf:"expression" json:"expression" jsonschema:"required,title=Expression" jsonschema_description:"Expression to derive the user attribute using the common expression language."`
|
|
}
|