Skip to main content

Poetry Ruff codecov pipeline workflow

Keycloak JWT Checker

A little tool for debugging claims contained in JSON Web Tokens (JWT) issued by Keycloak confidential clients.

Keycloak configuration can be quite complex. So I found it useful to have a tool to look at the claims contained in JWTs. You can see quickly if they contain the values you need for your use case.

The CLI tool takes the credentials of the client you configured in Keycloak and uses some user's credentials to issue tokens for that user using OIDC endpoints. It then decodes the JWT and displays its claim content on stdout.

Install

pip install keycloak-jwt-checker

Usage

$ keycloak-jwt-checker --help
Usage: keycloak-jwt-checker [OPTIONS]

  Keycloak JWT Checker.

  A little tool for debugging claims contained in JSON Web Tokens (JWT) issued
  by Keycloak confidential clients.

Options:
  --server-url TEXT        URL of the Keycloak server  [required]
  --client-id TEXT         Client ID  [required]
  --client-secret TEXT     Client secret  [required]
  --realm TEXT             Realm  [required]
  --username TEXT          Username of a Keycloak user you configured for this
                           client  [required]
  --password TEXT          Password of a Keycloak user you configured for this
                           client  [required]
  --skip-tls-verification  Set this flag if the TLS verification should be
                           skipped on OIDC endpoints
  --help                   Show this message and exit.

Environment Variables

If you are concerned about security or just don't want to use the CLI options for secrets or passwords, you can also use the following environment variables to provide these values to Keycloak JWT Checker.

KEYCLOAK_JWT_CHECKER_SERVER_URL=http:localhost:8080
KEYCLOAK_JWT_CHECKER_CLIENT_ID=test
KEYCLOAK_JWT_CHECKER_CLIENT_SECRET=verysecretsecret
KEYCLOAK_JWT_CHECKER_REALM=myrealm
KEYCLOAK_JWT_CHECKER_USERNAME=testuser
KEYCLOAK_JWT_CHECKER_PASSWORD=testpassword
KEYCLOAK_JWT_CHECKER_SKIP_TLS_VERIFICATION=true

Metadata

Release files for keycloak-jwt-checker 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keycloak-jwt-checker 1.0.1
File Size Uploaded Provenance Actions
keycloak_jwt_checker-1.0.1.tar.gz 3.3 kB Without provenance Details for keycloak_jwt_checker-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for keycloak-jwt-checker 1.0.1
File Interpreter ABI Platform Actions
keycloak_jwt_checker-1.0.1-py3-none-any.whl Python 3 none any Details for keycloak_jwt_checker-1.0.1-py3-none-any.whl

Total release size: 7.5 kB

Release files / keycloak_jwt_checker-1.0.1.tar.gz

Download URL keycloak_jwt_checker-1.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7ce15cb202b53a35ad9282a2d1b187a2af4591163d2dd8d52da3a90511129c2d
BLAKE2b-256 checksum
How to use checksums
7c7c22fe3a86e1c6d0c86b5efd438084cade77be46e561aa9cc6e11e2f1daec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

Release files / keycloak_jwt_checker-1.0.1-py3-none-any.whl

Download URL keycloak_jwt_checker-1.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37d50ff00bef7bb7a26ef01d21d9674b9b39d2b0fc3c0afba9c671ec549c2e01
BLAKE2b-256 checksum
How to use checksums
d43812f89cb84b6da76f70e0346c44c16592414782f05f57e8afcf589adfa39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure

Security for keycloak-jwt-checker 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page