-
Notifications
You must be signed in to change notification settings - Fork 0
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
[DDO-3785] OIDC #608
[DDO-3785] OIDC #608
Conversation
No API changes detected |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #608 +/- ##
==========================================
- Coverage 76.26% 69.62% -6.65%
==========================================
Files 211 272 +61
Lines 10031 12370 +2339
==========================================
+ Hits 7650 8612 +962
- Misses 1704 2880 +1176
- Partials 677 878 +201
|
Quality Gate passedIssues Measures |
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.
Non blocking comments, other wise cool stuff.
@@ -0,0 +1,37 @@ | |||
package login |
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.
What is this suite testing?
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.
handler_test is sorta borrowing the convention from the other (more multi-endpoint) api packages -- this hosts the suite and the other test files (login_test.go here) use it.
) | ||
|
||
// "AuthRequest implements the op.AuthRequest interface" | ||
var _ op.AuthRequest = &AuthRequest{} |
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.
I like this pattern is an easily visible compile time validation
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.
Yeah it's convenient because if you write this as the first step GoLand will offer to generate stubs for all the methods
/oidc
as the issuer and/login
as the "login" page that just validates auth requests based on middlewareenvironment.requiredRole ?? "all-users"
Testing
I've added tests for our implementation of the OIDC library we're using and the login page. Appsec has tested this in concert with ArgoCD and it got the thumb from them.
Risk
Low at this point due to testing.