Skip to main content

OIDC helpers for Vercel Python applications

Project description

vercel-oidc-bundle

This is a version of vercel-oidc with third-party dependencies bundled. For normal use, install the unbundled vercel-oidc package instead: https://pypi.org/project/vercel-oidc/

OIDC

vercel.oidc retrieves and decodes Vercel OIDC tokens.

Async Token Lookup

from vercel.oidc import decode_oidc_payload
from vercel.headers import set_headers
from vercel.oidc.aio import get_vercel_oidc_token


async def main() -> None:
    token = await get_vercel_oidc_token()
    payload = decode_oidc_payload(token)
    project_id = payload.get("project_id")

Token lookup prefers the x-vercel-oidc-token request header registered with vercel.headers.set_headers(), then VERCEL_OIDC_TOKEN. The compatibility alias vercel.oidc.set_headers() updates the same header context. In local development, you can load a short-lived token dynamically:

VERCEL_OIDC_TOKEN=$(vc project token some-project) some-command

Use vercel.oidc.get_vercel_oidc_token() for synchronous code.

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

vercel_oidc_bundle-0.7.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

vercel_oidc_bundle-0.7.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file vercel_oidc_bundle-0.7.1.tar.gz.

File metadata

  • Download URL: vercel_oidc_bundle-0.7.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vercel_oidc_bundle-0.7.1.tar.gz
Algorithm Hash digest
SHA256 4179b46ca36e27dc41a64f7a5d92d93251f41143468470f3d5f474d9e5fe19b5
MD5 fbbc8fa718f0a95b54caa3c7cecd7fd6
BLAKE2b-256 b08bee80f6e6e4fcb9e9e6ae7b308928c80de40fc3ac179b16e9463200524e87

See more details on using hashes here.

File details

Details for the file vercel_oidc_bundle-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: vercel_oidc_bundle-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vercel_oidc_bundle-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 074289a58249777901956a32a5db13d6a6d6bd41726e728891af8c19362094e2
MD5 923d2c04ece09887fa035fcf97461cf8
BLAKE2b-256 a5feb5e6c6476f4e1d01c4476e989d2def8ae5ee3364d41789b9ec95bf1b4e26

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