Skip to main content

This is a shared codebase for gcloud-aio-auth and gcloud-rest-auth

This library implements an IamClient class, which can be used to interact with GCP public keys and URL sign blobs.

It also implements an IapToken class which is used for authorizing against an Identity-Aware Proxy (IAP) secured GCP service. IAP uses identity tokens which are specific to the target service and allows administrators to configure a list of identities (ex. service accounts, users, or groups) that may access the service. Therefore each IapToken instance corresponds to an ID token which may be used to authorize against a single IAP service.

It additionally implements a Token class, which is used for authorizing against Google Cloud. The other gcloud-aio-* package components accept a Token instance as an argument; you can define a single token for all of these components or define one for each. Each component corresponds to a given Google Cloud service and each service requires various “scopes”.

The library supports multiple authentication methods: - Service account credentials - Authorized user credentials - GCE metadata credentials - Impersonated service account credentials - External account credentials (for workload identity federation)

Latest PyPI Version (gcloud-aio-auth) Python Version Support

Installation

$ pip install --upgrade gcloud-{aio,rest}-auth

Usage

See our docs.

Contributing

Please see our contributing guide.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcloud_aio_auth-5.5.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gcloud_aio_auth-5.5.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file gcloud_aio_auth-5.5.0.tar.gz.

File metadata

  • Download URL: gcloud_aio_auth-5.5.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.6 Linux/7.0.0-1008-aws

File hashes

Hashes for gcloud_aio_auth-5.5.0.tar.gz
Algorithm Hash digest
SHA256 56c3fef31dec6f3841f5eb0c79faf9a1cd3e475fa2c7a194bf516226aa39fd18
MD5 0f3b2b27032c001e91c4f9a9b5b37c2b
BLAKE2b-256 5002734cc76ebe2411a876f4ed42c298880f07c499c84749b6a7933ce88ed7e9

See more details on using hashes here.

File details

Details for the file gcloud_aio_auth-5.5.0-py3-none-any.whl.

File metadata

  • Download URL: gcloud_aio_auth-5.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.6 Linux/7.0.0-1008-aws

File hashes

Hashes for gcloud_aio_auth-5.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e2dc69356f0106356d3dd5437bd5b81d7e3ac90ee57c97b098bcbd901bcc88d
MD5 5d03f8ba4563388eb79d3c5518e3560c
BLAKE2b-256 2dd61825752a79ba9fff47579f52eb2380c169c8bdf168a0c36a85a13ab47ba9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page