OIDC: make callback URL paths deterministic. (#1188)

This commit is contained in:
Jim authored and GitHub committed 2021-05-02 15:25:29 -04:00
1 parent 61e236f76d
commit 8d317023f8
15 files changed
+51 -28

No files matched your search

+1 -1
View File
@@ -684,7 +684,7 @@ func (c *Command) startDevOidcAuthMethod() error {
PubKey: ed25519.PublicKey(c.oidcSetup.pubKey),
Alg: capoidc.EdDSA,
},
AllowedRedirectURIs: []string{fmt.Sprintf("%s/v1/auth-methods/%s:authenticate:callback", c.oidcSetup.callbackUrl.String(), c.DevOidcAuthMethodId)},
AllowedRedirectURIs: []string{fmt.Sprintf("%s/v1/auth-methods/oidc:authenticate:callback", c.oidcSetup.callbackUrl.String())},
ClientID: &c.oidcSetup.clientId,
ClientSecret: &clientSecret,
}))