mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
Merge pull request #1701 from tkleczek/static_client_secret_fix
allow no secret for static public clients
This commit is contained in:
+1
-1
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user