Commit Graph

13 Commits

Author SHA1 Message Date
Chen Sun 2f19a26ffd
chore(sdk): Format all Python files under SDK folder. (#6501)
* Reformat sdk only using the new yapf config.

* Reformat docstrings using docformatter.

* update golden files to resolve diff caused by whitespaces

* fix some tests

* format .py files under sdk/python/tests using yapf

* additional docformatter

* fix some tests
2021-09-03 11:25:11 -07:00
Anna 0d84877c98
fix(sdk): Add http status code check for token requests. Fixes #4312 (#5782)
Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>
2021-06-02 23:55:36 -07:00
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Shu 23c12a9fb4
chore: add instruction detail in _auth.py print statement. Fixes #4987 (#4988)
* Update _auth.py with more instructions

* Update sdk/python/kfp/_auth.py

Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>

Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>
2021-01-13 10:30:36 -08:00
Alexey Volkov ab21ec9845
feat(sdk): Client - Getting access token without gcloud CLI (#4811) 2020-11-23 01:03:35 -08:00
Chen Sun 587292fbae
Deduce proxy type from the presence of client_id (#3003)
* Deduce proxy type from presence of client_id

* handle error in get_gcp_access_token()

* restore the logic to detect inverse proxy host
2020-02-10 14:43:54 -08:00
Jiaxiao Zheng 13682eec31
[SDK] Fix CLI authentication (#2986)
* fix cli auth

* fix
2020-02-04 17:11:55 -08:00
Yuan (Bob) Gong 16c2d4e54a kfp client should not silently fail using gcloud (#2896) 2020-01-22 11:02:35 -08:00
Alexey Volkov 9ad7d7dd97 SDK - Client - Fixed client on Windows (#2646)
Also fixed the client for systems that do not have $HOME env var.
2019-11-26 10:28:53 -08:00
Ning c74a9d8cd2 Add support for user account auth with IAP (#2626)
* Add support for user account auth with IAP

* add comments

* add the url in case open_new_tab does not work(AI Platform notebook).

* code refactor: move get_auth_token logic in auth.py

* store the credentials locally

* minior fix

* add support in kfp cli

* fix diagnose me bug

* add reference

* add todo for refresh token expiration

* address comments
2019-11-22 15:26:42 -08:00
IronPan fb9eb2d0a2
close the thread to get gcloud auth token (#2084)
Error message saw in some cases
```
/tmpfs/BUILD_ENV/lib/python3.5/site-packages/kfp/_auth.py:34: ResourceWarning: unclosed file <_io.TextIOWrapper name=6 encoding='UTF-8'>
  return os.popen('gcloud auth print-access-token').read().rstrip()

```
2019-09-15 08:54:26 +08:00
IronPan 8d5ec83f5e
add connection for inverse proxy (#1993)
* add connection for inverse proxy

* update code

* remove lines

* Update _client.py

* Update _client.py

* Update _client.py
2019-09-03 10:56:51 -07:00
hongye-sun 69b7fd31de
Support to send default service account jwt token for pipeline client. (#779)
* Support to send default service account jwt token for pipeline client.

* Configure auth for both kfp_run and kfp_experiment APIs
2019-02-11 11:26:38 -08:00