mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-20 23:07:33 +00:00
18 lines
305 B
Go
18 lines
305 B
Go
|
package model
|
||
|
|
||
|
type OIDCCodeChallenge struct {
|
||
|
Challenge string
|
||
|
Method OIDCCodeChallengeMethod
|
||
|
}
|
||
|
|
||
|
func (c *OIDCCodeChallenge) IsValid() bool {
|
||
|
return c.Challenge != ""
|
||
|
}
|
||
|
|
||
|
type OIDCCodeChallengeMethod int32
|
||
|
|
||
|
const (
|
||
|
CodeChallengeMethodPlain OIDCCodeChallengeMethod = iota
|
||
|
CodeChallengeMethodS256
|
||
|
)
|