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/login_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.0.tar.gz (143.2 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.0-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auth_playground-0.1.0.tar.gz
  • Upload date:
  • Size: 143.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for auth_playground-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f4352721504a08f1047d307236d9ae518fcc37dc140bc902b1599ef006571f1
MD5 e607b535072a6b4ff30f1dbc4af8266f
BLAKE2b-256 af6ba6fa3c530b156e68181856bca1fed1c6989586394b25c26ee94510a8fa1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auth_playground-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57b5a338d6bdb3892ed653d889fe4fa6d1c8ddc5862307c2514075a276caa669
MD5 97e8a48da0923183f5af70e6b654107a
BLAKE2b-256 cfb11cc9ec73941679c866674eb368a27e5896d89c853968e97e1a9b7323759a

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