Ryan Richard
e89daadfcf
dump debugging info when a browser-based test fails
2024-05-31 09:09:24 -07:00
Joshua Casey
eee737186f
Clean up how lastTransitionTime and observedGeneration are checked in github_upstream_watcher_test
2024-05-30 21:34:29 -05:00
Ryan Richard
c5b54ec27e
resolve a todo in supervisor_discovery_test.go
2024-05-30 14:48:35 -07:00
Joshua Casey
2ad43789cc
Merge pull request #1975 from vmware-tanzu/another_github_doc_change
...
mention GitHubIdentityProvider in some more website documentation
2024-05-30 16:32:55 -05:00
Ryan Richard
38a90fa01e
mention GitHubIdentityProvider in some more website documentation
2024-05-30 14:21:33 -07:00
Joshua Casey
037fa65c63
Merge pull request #1963 from vmware-tanzu/github-issues-downstream-tokens
...
Issue and refresh downstream ID tokens derived from a GitHub IDP
2024-05-30 16:16:37 -05:00
Joshua Casey
de68594fd6
Merge pull request #1974 from vmware-tanzu/pinny/bump-deps
...
Bump dependencies
2024-05-30 12:03:49 -05:00
Ryan Richard
6327f51f5b
repeat same github int tests using OAuth client in supervisor_login_test
2024-05-30 09:58:10 -07:00
Joshua Casey
781ee82b9d
Merge branch 'main' into pinny/bump-deps
2024-05-30 11:15:35 -05:00
Ryan Richard
34d02466d9
Merge pull request #1973 from vmware-tanzu/jtc/use-dependabot-for-major-versions-only
...
Use dependabot to automate major-only dependency bumps
2024-05-30 07:44:33 -07:00
Pinny
8dd34d9ea9
Bump dependencies
2024-05-30 13:01:05 +00:00
Joshua Casey
3c0bad9ea2
Use dependabot to automate major-only dependency bumps
2024-05-29 17:37:25 -05:00
Ryan Richard
2bf11ffde1
update error message assertion for github in supervisor_login_test.go
2024-05-29 09:45:43 -07:00
Ryan Richard
bb9cb739c6
more unit tests for github in token_handler_test.go
2024-05-29 08:55:41 -07:00
Joshua Casey
cc8d637715
Fix lint
2024-05-28 20:33:55 -05:00
Joshua Casey
eafc9ad78c
Merge pull request #1970 from vmware-tanzu/use_latest_dir_for_api_docs
...
use "latest" dir for API docs in doc URLs on the web site
2024-05-28 18:10:22 -05:00
Ryan Richard
c1719c8f1a
use "latest" dir for API docs in doc URLs on the web site
2024-05-28 15:59:40 -07:00
Joshua Casey
d3fb567fdb
Add callback_handler tests for GitHub+IdentityTransformations
...
Co-authored-by: Ryan Richard <richardry@vmware.com >
2024-05-28 15:59:52 -05:00
Joshua Casey
8b1e5aa320
Add callback_handler tests to confirm GitHub with downstream form_post and GitHub with an error case
...
Co-authored-by: Ryan Richard <richardry@vmware.com >
2024-05-28 15:17:04 -05:00
Joshua Casey
37e654faa0
bunch of renames
...
Co-authored-by: Ryan Richard <richardry@vmware.com >
2024-05-28 13:41:52 -05:00
Joshua Casey
7c73b5e3df
Merge pull request #1969 from vmware-tanzu/pinny/bump-deps
...
Bump dependencies
2024-05-27 11:49:02 -05:00
Pinny
6a9661b374
Bump dependencies
2024-05-27 13:03:01 +00:00
Joshua Casey
6429164852
Merge pull request #1968 from vmware-tanzu/pinny/bump-deps
...
Bump dependencies
2024-05-24 08:55:22 -05:00
Pinny
fa68cbbe4e
Bump dependencies
2024-05-24 13:02:57 +00:00
Ryan Richard
f323690049
refactor upstream refresh test helpers to be more specific to IDP type
2024-05-23 13:35:31 -07:00
Joshua Casey
02ffff01d5
fix lint
2024-05-23 12:32:18 -05:00
Joshua Casey
2cdeb85cd6
Merge pull request #1967 from vmware-tanzu/pinny/bump-deps
...
Bump dependencies
2024-05-23 12:29:41 -05:00
Pinny
6ea7c48ae9
Bump dependencies
2024-05-23 13:01:01 +00:00
Joshua Casey
65682aa60d
Add sample unit test for GitHub in token_handler_test.go
2024-05-22 23:04:15 -05:00
Ryan Richard
bb1737daec
slow down github integration tests to avoid OTP reuse errors from github
2024-05-22 21:21:45 -05:00
Ryan Richard
fef494949f
implement upstream refresh for github
2024-05-22 21:21:45 -05:00
Ryan Richard
0a15d488c8
Merge callback_handler_github_test.go into callback_handler_test.go
...
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com >
2024-05-22 21:21:45 -05:00
Ryan Richard
e69eb46911
Add github integration tests to supervisor_login_test.go
...
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com >
2024-05-22 21:21:45 -05:00
Ryan Richard
8f8db3f542
Make github org comparison case-insensitive, but return original case
...
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com >
2024-05-22 21:21:45 -05:00
Ryan Richard
8923704f3c
Finish initial github login flow
...
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
2024-05-22 21:21:45 -05:00
Joshua Casey
ba2d122308
fix lint
2024-05-22 21:21:45 -05:00
Joshua Casey
938bea9910
upstreamgitub.go now uses githubclient to determine username and groups
2024-05-22 21:21:45 -05:00
Joshua Casey
8719c7a2db
Standardize error messages and url handling within NewGitHubClient
...
Co-authored-by: Ryan Richard <richardry@vmware.com >
2024-05-22 21:21:45 -05:00
Ryan Richard
16fa12f455
Handle empty or invalid github API responses
...
Co-authored-by: Joshua Casey <joshuatcasey@gmail.com >
2024-05-22 21:21:45 -05:00
Joshua Casey
555b1c80e3
Use passed-in context
...
Co-authored-by: Ryan Richard <richardry@vmware.com >
2024-05-22 21:21:45 -05:00
Joshua Casey
a12a5f387a
Empty allowedOrganizations will return all teams
...
Co-authored-by: Ryan Richard <richardry@vmware.com >
2024-05-22 21:21:45 -05:00
Joshua Casey
c087e33b86
Add client wrapper for github.com/google/go-github/v62
2024-05-22 21:21:45 -05:00
Ryan Richard
49c468f00a
Add GetUser() interface and implement LoginFromCallback() for GitHub
...
ALso fixed some of the GitHub test helpers
2024-05-22 21:21:45 -05:00
Joshua Casey
b7f79f0adc
Add github-specific tests in callback_handler_github_test.go
...
Co-authored-by: Ryan Richard <richardry@vmware.com >
2024-05-22 21:21:45 -05:00
Ryan Richard
2756a106a9
Merge pull request #1966 from vmware-tanzu/jtc/add-docs-for-github-app
...
Add docs for GitHub app and GitHub OAuth app
2024-05-22 15:04:38 -07:00
Ryan Richard
efffa0def2
document creating GitHub OAuth App
2024-05-22 15:03:09 -07:00
Joshua Casey
6beb1c135c
Add docs for GitHub App configuration on github.com
2024-05-22 16:25:42 -05:00
Joshua Casey
24ab2e85e5
Merge pull request #1965 from vmware-tanzu/pinny/bump-deps
...
Bump dependencies
2024-05-22 13:27:11 -05:00
Joshua Casey
c6749560b5
Fix plog test assertions that contain the plog library version
2024-05-22 09:35:16 -05:00
Pinny
a0160b8e47
Bump dependencies
2024-05-22 13:01:15 +00:00