Skip to main content

Django app for Keycloak OAuth2 authentication with DRF.

Project description

django-drf-keycloak-auth

When using Django, DRF, and Keycloak for authentication and permission management, django-drf-keycloak-auth can make your work easier.

Getting Started

pip install django-drf-keycloak-auth

OR

uv add django-drf-keycloak-auth

Usage

Examples

Deploy project(memo for developer)

setuptools version

The latest setuptools(version 80.9.0) produces .whl files with a METADATA version of 2.4. You can check this by running:

unzip -p dist/*.whl '*/METADATA' | sed -n '1,160p'

Note that TestPyPI and TestPyPI only supports METADATA versions 1.0–2.2. Therefore, if you plan to publish your package to TestPyPI or TestPyPI, you should not use the latest setuptools.

Deploy to TestPyPI

Depending on the network environment, you may need to use a proxy.

# https://test.pypi.org/
expect interactive_deploy_test.expect

Install django-drf-keycloak-auth from TestPyPI.

uv pip uninstall django-drf-keycloak-auth

uv pip install --no-cache-dir \
  --index-url https://pypi.org/simple \
  --extra-index-url https://test.pypi.org/simple \
  --index-strategy unsafe-best-match \
  django-drf-keycloak-auth==0.0.1

OR

uv pip install --index-url https://test.pypi.org/simple django-drf-keycloak-auth==0.0.1

Deploy to PyPI

Depending on the network environment, you may need to use a proxy.

# https://pypi.org/
expect interactive_deploy.expect

How to mark a version as yanked

twine yank <package_name> --version <version> --reason "Reason this release was yanked: Yanked due to <reason>"

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.0.1] - 2025-10-15

  • First commit(Only for test)

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

django_drf_keycloak_auth-0.0.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

django_drf_keycloak_auth-0.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file django_drf_keycloak_auth-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django_drf_keycloak_auth-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b9b4fb2aa4e9e0d606b0bcec00324c8057e99dfb7624dd5fc8083fc86f5cb2a3
MD5 08f58057535cdbad503e72f827525818
BLAKE2b-256 23958ba42f74d9d5fbd2b4475cce66ff9cb83d7aba4ea1365d96095f8fc898fc

See more details on using hashes here.

File details

Details for the file django_drf_keycloak_auth-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_drf_keycloak_auth-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77a2f75dc680bb481b5674c9e38fd28bce1d4660662f6857f7c70a48bfb3efac
MD5 d445178972a9adf45c47fa44f6698718
BLAKE2b-256 faeeaee9d0c65c39f2cffb044eea2a5c71bc7f37867cf0a38c47fb3c027d5bd6

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