Skip to main content

This is a shared codebase for gcloud-rest-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-rest-* 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-rest-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_rest_auth-5.5.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

gcloud_rest_auth-5.5.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gcloud_rest_auth-5.5.0.tar.gz
  • Upload date:
  • Size: 15.6 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_rest_auth-5.5.0.tar.gz
Algorithm Hash digest
SHA256 f5e05d0050ed3bbc5273585e81d34bdbaf41b3aa51737986fd00138fc98fba48
MD5 652a98c30de6733ffe412ada129f27dc
BLAKE2b-256 e671ff2235b46f711f0f41936a560d0bd99222871bef3639b32f4fb87e160fdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gcloud_rest_auth-5.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 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_rest_auth-5.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd9bd5b83890e65a74b2a01d6830a8f113429a5fec7ce5b456f810964260b82
MD5 b028db366cb968bd6a162e310245dc66
BLAKE2b-256 2f4ade244fac7a647e0e0463feb9acdbc5e5af1567fc28307e25662c03d480e5

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 Sentry Error logging StatusPage Status page