Skip to content
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

Merged
merged 11 commits into from
Nov 22, 2019
Merged

Add support for user account auth with IAP #2626

merged 11 commits into from
Nov 22, 2019

Conversation

gaoning777
Copy link
Contributor

@gaoning777 gaoning777 commented Nov 19, 2019

This change is Reviewable

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.

sdk/python/kfp/_auth.py Outdated Show resolved Hide resolved
@gaoning777
Copy link
Contributor Author

@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?

@gaoning777 gaoning777 changed the title [WIP] Add support for user account auth with IAP Add support for user account auth with IAP Nov 22, 2019
@gaoning777
Copy link
Contributor Author

It is ready for review: @IronPan @hongye-sun @Ark-kun

@gaoning777
Copy link
Contributor Author

Thanks Alexey for looking into the diagnose issue, which I've also included in this PR.

sdk/python/kfp/_auth.py Outdated Show resolved Hide resolved
@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 22, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot removed the lgtm label Nov 22, 2019
@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 22, 2019

/lgtm

@gaoning777
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit c74a9d8 into kubeflow:master Nov 22, 2019
@gaoning777 gaoning777 deleted the support-iap-sdk branch November 23, 2019 00:09
@@ -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.')

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

magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants