-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
New commands: tctl sso test
, tctl sso configure
for GitHub
#12783
Merged
Merged
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
5ac32cd
Implement `tctl sso` commands for GitHub auth.
Tener 4f529c7
Small consistency fixes across connector types.
Tener de38004
Merge branch 'master' into tener/tctl-sso-gh
Tener 8a61bf5
Remove unused leftover type declaration.
Tener 8ec57c7
Add missing formatting directive.
Tener 5ea3480
Merge branch 'master' into tener/tctl-sso-gh
Tener fc54be0
Rename variable.
Tener 29c52c1
Consistency in pointer use.
Tener f776db7
Remove outdated todo.
Tener 91e07cc
Extract `getSupportedKinds()` method.
Tener b5d1ce3
Improve comment.
Tener c6f9e2a
Check request for nil.
Tener 04efb88
Remove superfluous comment.
Tener 4db5f04
Rename function arg.
Tener 16b17c0
Merge branch 'master' into tener/tctl-sso-gh
Tener 292fb72
Make teamsToLoginsParser a struct.
Tener ddd7163
Merge branch 'master' into tener/tctl-sso-gh
Tener eb234b4
Drop DiagnosticInfoField type.
Tener ecffead
Document AuthRequestInfo.
Tener d34550d
Extract methods. Fix `--ignore-missing-roles`.
Tener 0add745
Document `IsCumulative()` method.
Tener 095595c
Improve readability: extract `printDiagnosticInfo`.
Tener 2677ab1
Share logic via `ResolveCallbackURL()`.
Tener c43577e
Merge branch 'master' into tener/tctl-sso-gh
Tener abdf8e9
Call correct function in test.
Tener 0fc805f
Refactor getGithubOAuth2Client.
Tener 6d72ed2
Merge branch 'master' into tener/tctl-sso-gh
Tener 68ffcba
Tweak commands.
Tener ff41328
Mark RFDs as implemented.
Tener 9ed7272
Merge branch 'master' into tener/tctl-sso-gh
Tener 69166b9
Merge branch 'master' into tener/tctl-sso-gh
Tener File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a reason that this needs to be an http request rather than gRPC?
lib/auth.Client
is deprecated in favor ofapi/client.Client
, which is the purely gRPC client - #6394There 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.
Adding the gRPC endpoint would require adding the relevant types to
.proto
files and more refactoring besides. This is not necessarily the wrong thing to do, but I'm afraid it would balloon the size of this already large PR even more. Also, I think it would make sense to move all methods from a given group in one go, rather than have some implemented on HTTP side, and some on gRPC side.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 think that making new http endpoints only makes things more confusing for developers. IMO it'd be better to take a hard lined approach of only adding new endpoints to gRPC, even if that fits less smoothly in the current code base. Otherwise we may have more instances of http endpoints being added needlessly, moving us further away from having a purely gRPC, public API, in one place.
Before this gets pushed to a release branch, we should move these new (and old) http endpoints to gRPC. I can create a follow up PR for this.
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.
Sure, let's do it. There should be enough time before the v10 release to make this happen. This feature won't be merged to v9 either.