Skip to main content

No project description provided

Project description

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.

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

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

keycloak_jwt_checker-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

keycloak_jwt_checker-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keycloak_jwt_checker-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.9 Darwin/23.6.0

File hashes

Hashes for keycloak_jwt_checker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 11ecfa3d3d000ab2fc24a63b7305b07a3068728f7e72eb01bc6dfa91d96d2d9d
MD5 d132547253bbc037fdb2fafb2f660aab
BLAKE2b-256 f6463408965cedde32f636933cdf835431ad38962904d5a3113c1de17484ae1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keycloak_jwt_checker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8efb1ffedcdb0b8042478d3496efe61ffe9723873af34264fd9c27c28f1905f
MD5 60d1b280a3f439bbb863f1d2d72eca70
BLAKE2b-256 4da7f649ebcfc2865add046fed90bc14a6929e696f7dee53dc4034388e4938e4

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