Skip to content
Snippets Groups Projects
Unverified Commit 336e284a authored by Márk Sági-Kazár's avatar Márk Sági-Kazár Committed by GitHub
Browse files

Merge pull request #1701 from tkleczek/static_client_secret_fix

allow no secret for static public clients
parents 0a85a97b c830d498
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ func serve(cmd *cobra.Command, args []string) error {
}
c.StaticClients[i].ID = os.Getenv(client.IDEnv)
}
if client.Secret == "" && client.SecretEnv == "" {
if client.Secret == "" && client.SecretEnv == "" && !client.Public {
return fmt.Errorf("invalid config: Secret or SecretEnv field is required for client %q", client.ID)
}
if client.SecretEnv != "" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment