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.0a1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: id-1.0.0a1.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.0a1.tar.gz
Algorithm Hash digest
SHA256 cb81304f1a048c781f81d02aa1a1b99126177e826bfce4e39ea3de691829467d
MD5 dd0ba7cabcc8bc892d52dac12ca5ed68
BLAKE2b-256 7aecfdca4e9116372e8ddb7b5781e1836bf7dfb615720dec74a945a05679c5f9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: id-1.0.0a1-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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3126ec813eecb8a34ca1a3caa7760859bd6b1d21f382877c1c0bbbaea32d1737
MD5 34cac9961e36be902df6dc4b52209cf3
BLAKE2b-256 cce56a0e8f1ccd2dcace29e5060921ca5b97ffd1928942867c2fcc8afd2b94c7

See more details on using hashes here.

Provenance

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