-
Notifications
You must be signed in to change notification settings - Fork 66
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
Issue and refresh downstream ID tokens derived from a GitHub IDP #1963
Issue and refresh downstream ID tokens derived from a GitHub IDP #1963
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## github_identity_provider #1963 +/- ##
============================================================
+ Coverage 30.14% 30.57% +0.43%
============================================================
Files 358 362 +4
Lines 59869 60335 +466
============================================================
+ Hits 18046 18448 +402
- Misses 41293 41353 +60
- Partials 530 534 +4 ☔ View full report in Codecov by Sentry. |
internal/federationdomain/endpoints/callback/callback_handler_github_test.go
Outdated
Show resolved
Hide resolved
internal/federationdomain/resolvedprovider/resolvedgithub/resolved_github_provider.go
Outdated
Show resolved
Hide resolved
internal/federationdomain/endpoints/callback/callback_handler_test.go
Outdated
Show resolved
Hide resolved
cd5591d
to
1289fa8
Compare
internal/federationdomain/resolvedprovider/resolvedgithub/resolved_github_provider.go
Show resolved
Hide resolved
Co-authored-by: Ryan Richard <richardry@vmware.com>
ALso fixed some of the GitHub test helpers
Co-authored-by: Ryan Richard <richardry@vmware.com>
Co-authored-by: Ryan Richard <richardry@vmware.com>
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com>
Co-authored-by: Ryan Richard <richardry@vmware.com>
Also: - fix github teams query: fix bug and sort/unique the results - add IDP display name to github downstream subject - fix error types returned by LoginFromCallback - add trace logs to github API results - update e2e test - implement placeholder version of refresh for github
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com>
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com>
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com>
ac6d56f
to
bb1737d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## github_identity_provider #1963 +/- ##
============================================================
+ Coverage 30.14% 30.60% +0.46%
============================================================
Files 358 362 +4
Lines 59869 60383 +514
============================================================
+ Hits 18046 18481 +435
- Misses 41293 41368 +75
- Partials 530 534 +4 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Ryan Richard <richardry@vmware.com>
…t and GitHub with an error case Co-authored-by: Ryan Richard <richardry@vmware.com>
Co-authored-by: Ryan Richard <richardry@vmware.com>
The Supervisor will now issue downstream tokens when logging in with GitHub as an identity provider. Will check the user's organization and team membership and ensure that the user meets the login policy specified on the GitHub IDP CR.
Refreshing a GitHub-derived identity is virtually identical to logging in, so that was implemented as well.