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
AUTH-356: Add openshift-cli-client OAuth Client #606
AUTH-356: Add openshift-cli-client OAuth Client #606
Conversation
@liouk: This pull request references AUTH-356 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest-required |
5 similar comments
/retest-required |
/retest-required |
/retest-required |
/retest-required |
/retest-required |
pkg/controllers/oauthclientscontroller/oauthclientscontroller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/oauthclientscontroller/oauthclientscontroller.go
Outdated
Show resolved
Hide resolved
6d39708
to
a0d1408
Compare
/retest-required |
2 similar comments
/retest-required |
/retest-required |
pkg/controllers/oauthclientscontroller/oauthclientscontroller.go
Outdated
Show resolved
Hide resolved
@liouk since we're here, would you mind adding a unit test for this file? This code has no unit test coverage, we only rely on e2e tests. For mocking the client you can get inspired i.e. from here Lines 119 to 126 in 9355b59
|
@s-urbaniak added unit tests for |
pkg/controllers/oauthclientscontroller/oauthclientscontroller_test.go
Outdated
Show resolved
Hide resolved
/retest-required |
pkg/controllers/oauthclientscontroller/oauthclientscontroller_test.go
Outdated
Show resolved
Hide resolved
pkg/controllers/oauthclientscontroller/oauthclientscontroller_test.go
Outdated
Show resolved
Hide resolved
acd7e24
to
c505c00
Compare
/lgtm |
…strap The operator creates an `OAuthClient` without secrets and a redirect URIs set to the loopback address. This will be used by the CLI to obtain tokens through [PKCE](https://datatracker.ietf.org/doc/html/rfc7636).
/lgtm |
/retest |
@liouk: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liouk, s-urbaniak, stlaz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
39a1e26
into
openshift:master
This PR introduces a new OAuthClient at bootstrap which is required for the OAuth2 Authorization Code Grant Flow for
oc
.