Fix rules argument (#71)

This commit is contained in:
Sandro 2019-09-20 17:28:11 +02:00 committed by Thom Seddon
parent 3e6ccc8f45
commit 5a676f3068
2 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@ Application Options:
--url-path= Callback URL Path (default: /_oauth) [$URL_PATH]
--secret= Secret used for signing (required) [$SECRET]
--whitelist= Only allow given email addresses, can be set multiple times [$WHITELIST]
--rules.<name>.<param>= Rule definitions, param can be: "action" or "rule"
--rule.<name>.<param>= Rule definitions, param can be: "action" or "rule"
Google Provider:
--providers.google.client-id= Client ID [$PROVIDERS_GOOGLE_CLIENT_ID]
@ -244,7 +244,7 @@ All options can be supplied in any of the following ways, in the following prece
For more details, please also read [User Restriction](#user-restriction) in the concepts section.
- `rules`
- `rule`
Specify selective authentication rules. Rules are specified in the following format: `rule.<name>.<param>=<value>`

View File

@ -38,7 +38,7 @@ type Config struct {
Whitelist CommaSeparatedList `long:"whitelist" env:"WHITELIST" description:"Only allow given email addresses, can be set multiple times"`
Providers provider.Providers `group:"providers" namespace:"providers" env-namespace:"PROVIDERS"`
Rules map[string]*Rule `long:"rules.<name>.<param>" description:"Rule definitions, param can be: \"action\" or \"rule\""`
Rules map[string]*Rule `long:"rule.<name>.<param>" description:"Rule definitions, param can be: \"action\" or \"rule\""`
// Filled during transformations
Secret []byte `json:"-"`