-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add support for user account auth with IAP #2626
Conversation
@jlewi If everybody shares the same client_id to fetch the refresh token, with which the id_token is generated, would that cause any problems? |
It is ready for review: @IronPan @hongye-sun @Ark-kun |
Thanks Alexey for looking into the diagnose issue, which I've also included in this PR. |
/lgtm |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaoning777 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 |
@@ -24,13 +24,15 @@ | |||
@click.option('--endpoint', help='Endpoint of the KFP API service to connect.') | |||
@click.option('--iap-client-id', help='Client ID for IAP protected endpoint.') | |||
@click.option('-n', '--namespace', default='kubeflow', help='Kubernetes namespace to connect to the KFP API.') | |||
@click.option('--other-client-id', help='Client ID for IAP protected endpoint to obtain the refresh token.') | |||
@click.option('--other-client-secret', help='Client ID for IAP protected endpoint to obtain the refresh token.') |
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.
Just FYI, there is a typo in the help: it is the secret not the ID
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com> Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This change is
For local dev, it opens up a tab in the webbrowser; For notebooks, it displays a link.
It also stores the credentials locally in $HOME/.config/kfp/credentials.db such that future requests can be automated.