Skip to main content

A tool for generating OIDC identities

Project description

id

CI PyPI version OpenSSF Scorecard SLSA

id is a Python tool for generating OIDC identities. It can automatically detect and produce OIDC credentials on an number of environments, including GitHub Actions and Google Cloud.

Installation

id requires Python 3.7 or newer, and can be installed directly via pip:

python -m pip install id

Usage

You can run id as a Python module via python -m:

python -m id --help

Top-level:

usage: id [-h] [-V] [-v] audience

a tool for generating OIDC identities

positional arguments:
  audience       the OIDC audience to use

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit
  -v, --verbose  run with additional debug logging; supply multiple times to
                 increase verbosity (default: 0)

For Python API usage, there is a single importable function, detect_credential:

>>> from id import detect_credential
>>> detect_credential(audience='something')
'<OIDC token>'

This function requires an audience parameter, which is used when generating the OIDC token. This should be set to the intended audience for the token.

Supported environments

id currently supports ambient credential detection in the following environments:

Licensing

id is licensed under the Apache 2.0 License.

Contributing

See the contributing docs for details.

SLSA Provenance

This project emits a SLSA provenance on its release! This enables you to verify the integrity of the downloaded artifacts and ensured that the binary's code really comes from this source code.

To do so, please follow the instructions here.

Project details


Download files

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

Source Distribution

id-1.0.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

id-1.0.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file id-1.0.0.tar.gz.

File metadata

  • Download URL: id-1.0.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for id-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d4b3e75ce0d5f38c9e467826436babe8b9bc5f78e22bae716a22a6a0add570ea
MD5 41d7cf0d6a35f3c09076357877125e65
BLAKE2b-256 87facc97d2b764b1153fb76c0edaa34980e8adf36c51a574e7c1038f33d70dc5

See more details on using hashes here.

File details

Details for the file id-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: id-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for id-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8822ba0454bb8660c4fff439eadbf06236cc354dcabd7ae00d907143d92215f5
MD5 e8341a5ab344d2759ceea77d2808634a
BLAKE2b-256 e46eb8d83a6b01662d624440d755e2ac48e84d5e01732940c412d7bac6bb6635

See more details on using hashes here.

Supported by

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