Skip to main content

Demonstration OpenID Connect Client

Project description

Auth Playground

Tests Docker Docker Image

A demonstration OAuth2 / OpenID Connect (OIDC) client application built with Authlib. This project illustrates how to integrate with an identity provider for user authentication, registration, and consent management. It can be used to play with the different interactions between clients and server, or debug a server implementation.

Installation

Using pip

pip install auth-playground

Using uv

uv add auth-playground

Using Docker

Run the pre-built image from GitHub Container Registry:

docker run -p 4000:4000 -e SECRET_KEY="your-secret-key" ghcr.io/authlib/auth-playground:latest

Or build locally:

docker build -t auth-playground .
docker run -p 4000:4000 -e SECRET_KEY="your-secret-key" auth-playground

Configuration

The application is configured using environment variables. Copy the example configuration file:

cp example.env .env

Edit .env and set the required values:

# Required
export SECRET_KEY="your-secret-key"

# Optional
export OAUTH_CLIENT_ID="your-client-id"
export OAUTH_CLIENT_SECRET="your-client-secret"
export OAUTH_AUTH_SERVER="https://your-identity-provider.example.com"

Registering with your Identity Provider

When registering this application with your identity provider, configure the following redirect URIs:

http://localhost:4000/authorize_callback
http://localhost:4000/logout_callback

Usage

auth-playground

The application will be available at http://localhost:4000

Development

Running Tests

uv run pytest

Code Style

uv run prek run --all-files

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

auth_playground-0.1.4.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

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

auth_playground-0.1.4-py3-none-any.whl (72.4 kB view details)

Uploaded Python 3

File details

Details for the file auth_playground-0.1.4.tar.gz.

File metadata

  • Download URL: auth_playground-0.1.4.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for auth_playground-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cacabcf48a1b80e9cc4b1fefd33831f921c23fea48f295779968305e50f56214
MD5 3744cb1a94fce4a7a0f4dac1855219fc
BLAKE2b-256 b9861961f264ae39759936dca1389444a23110f002c331c565e1760739bcbcfe

See more details on using hashes here.

Provenance

The following attestation bundles were made for auth_playground-0.1.4.tar.gz:

Publisher: release.yml on authlib/auth-playground

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file auth_playground-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for auth_playground-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e2505a50f6a71eae75c3f70ba573b84cf650b3b677041cdc5d564fd9885d60bd
MD5 2c60bb80b54ec8b9c13693d4d79ce5ef
BLAKE2b-256 8d82aa756af28e0a98942b2ea9c8f80742a74f0e86adccb6ef8fd62c866277d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for auth_playground-0.1.4-py3-none-any.whl:

Publisher: release.yml on authlib/auth-playground

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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