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.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

id-1.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: id-1.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for id-1.1.0.tar.gz
Algorithm Hash digest
SHA256 726b995ffea6954ecbe3f2bb9e9d52b8502b2683b8470b13c58a429cd8e701e8
MD5 9dcd32738d3c07360754da516599ac27
BLAKE2b-256 a7c62e83b0d17da616a21ff773873e6f64361ccf4bf11923e1fd852339a9c2e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: id-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for id-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a15f919fa1e847f57572748d37cf40192913a861a2669059b4cb5079bbbbbdbd
MD5 9b4ba7085c3dcef0fa48dda608cc4447
BLAKE2b-256 5c43e00edf4a218de5284d885b7a0bf0bed25114a4651c05b8bbd82f677e0c89

See more details on using hashes here.

Supported by

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