Skip to content
Snippets Groups Projects
Unverified Commit 0f68fadb authored by Steffen Pøhner Henriksen's avatar Steffen Pøhner Henriksen Committed by GitHub
Browse files

Allow public clients created with API to have no client_secret (#1871)

parent 86ea4917
Branches
Tags
No related merge requests found
......@@ -50,7 +50,7 @@ func (d dexAPI) CreateClient(ctx context.Context, req *api.CreateClientReq) (*ap
if req.Client.Id == "" {
req.Client.Id = storage.NewID()
}
if req.Client.Secret == "" {
if req.Client.Secret == "" && !req.Client.Public {
req.Client.Secret = storage.NewID() + storage.NewID()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment