mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 00:02:03 +00:00
fix: expose getIdToken in python-client
This commit is contained in:
@@ -575,6 +575,13 @@ def run_script_by_path_sync(
|
||||
)
|
||||
|
||||
|
||||
@init_global_client
|
||||
def get_id_token(audience: str) -> str:
|
||||
"""
|
||||
Get a JWT token for the given audience for OIDC purposes to login into third parties like AWS, Vault, GCP, etc.
|
||||
"""
|
||||
return _client.get_id_token(audience)
|
||||
|
||||
@init_global_client
|
||||
def get_job_status(job_id: str) -> JobStatus:
|
||||
return _client.get_job_status(job_id)
|
||||
|
||||
Reference in New Issue
Block a user