feat(oidc): return defined error when discovery failed

This commit is contained in:
Ayato 2024-09-16 21:53:45 +09:00
parent b555396744
commit aadfd3017f
No known key found for this signature in database
GPG key ID: 56E05AE09DBA012D
3 changed files with 18 additions and 5 deletions

View file

@ -40,6 +40,7 @@ type IDClaims interface {
var (
ErrParse = errors.New("parsing of request failed")
ErrDiscoveryFailed = errors.New("OpenID Provider Configuration Discovery is failed")
ErrIssuerInvalid = errors.New("issuer does not match")
ErrSubjectMissing = errors.New("subject missing")
ErrAudience = errors.New("audience is not valid")