-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: merge the verifier types #336
Conversation
BREAKING CHANGE: - The various verifier types are merged into a oidc.Verifir. - oidc.Verfier became a struct with exported fields
this binds the correct contstructor to each verifier usecase.
8ec8c33
to
d877539
Compare
462a108
to
7a49693
Compare
Codecov Report
@@ Coverage Diff @@
## next #336 +/- ##
==========================================
+ Coverage 50.84% 52.28% +1.43%
==========================================
Files 74 74
Lines 5631 5587 -44
==========================================
+ Hits 2863 2921 +58
+ Misses 2508 2414 -94
+ Partials 260 252 -8
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
JWTTokenRequest.GetIssuedAt() was returning the ExpiresAt field. This change corrects that by returning IssuedAt instead. This bug was introduced in #283
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is used only for tests. Changes here are to accommodate newly added tests.
pkg/oidc/types.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes cherry-picked from #339
@@ -192,7 +192,7 @@ func (j *JWTTokenRequest) GetExpiration() time.Time { | |||
|
|||
// GetIssuedAt implements the Claims interface | |||
func (j *JWTTokenRequest) GetIssuedAt() time.Time { | |||
return j.ExpiresAt.AsTime() | |||
return j.IssuedAt.AsTime() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cherry -pick from #341
🎉 This PR is included in version 3.0.0-next.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
BREAKING CHANGE:
Closes #314
TODO:
ValidateAuthReqIDTokenHint()