MCPcopy
hub / github.com/zitadel/oidc / VerifyCodeChallenge

Function VerifyCodeChallenge

pkg/oidc/code_challenge.go:25–33  ·  view source on GitHub ↗
(c *CodeChallenge, codeVerifier string)

Source from the content-addressed store, hash-verified

23}
24
25func VerifyCodeChallenge(c *CodeChallenge, codeVerifier string) bool {
26 if c == nil {
27 return false
28 }
29 if c.Method == CodeChallengeMethodS256 {
30 codeVerifier = NewSHACodeChallenge(codeVerifier)
31 }
32 return codeVerifier == c.Challenge
33}

Callers 1

AuthorizeCodeChallengeFunction · 0.92

Calls 1

NewSHACodeChallengeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…