enableRegistration:=fs.Bool("enable-registration",false,"Allows users to self-register")
enableRegistration:=fs.Bool("enable-registration",false,"Allows users to self-register. This flag cannot be used in combination with --enable-automatic-registration.")
registerOnFirstLogin:=fs.Bool("enable-automatic-registration",false,"When a user logs in through a federated identity service, automatically register them if they don't have an account. This flag cannot be used in combination with --enable-registration.")
enableClientRegistration:=fs.Bool("enable-client-registration",false,"Allow dynamic registration of clients")
noDB:=fs.Bool("no-db",false,"manage entities in-process w/o any encryption, used only for single-node testing")
...
...
@@ -90,6 +92,11 @@ func main() {
os.Exit(0)
}
if(*enableRegistration)&&(*registerOnFirstLogin){
fmt.Fprintln(os.Stderr,"The flags --enable-registration and --enable-automatic-login cannot both be true.")