Skip to main content

Python Django

phyton logo

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Get started integrating authentication to your Django API Application by checking out our example-python-django-oauth or your Django Web application by checking out our example-python-django-oidc Example.

Resources​

Django SDK​

ZITADEL does not provide a Python Django specific SDK. But you can integrate ZITADEL to your application by using any OIDC Library such as mozilla-django-oidc or authlib.

Examples Application​

What does the API Application Example include:

  • REST API Application secured with OAuth2
  • Public Endpoint: Accessible without authentication
  • Private Endpoint: Accessible with a token
  • Administrator Endpoint: Accessible with a token of a user with admin role

Example API App

What does the Web Application Example include:

  1. Example Web Application with integrated ZITADEL Login
  2. Example page accessible by authenticated user showing retrieved user information
  3. Example page accessible by authenticated user showing polls
    • Votes for polls can only be done if authenticated
    • New polls can be created by user with admin role
  4. Logout
  5. Correct setup for your application in ZITADEL

Example Web App

Step-By-Step Guide​

After completing the Step-By-Step Guide for an API you will have:

  1. Example REST API checking tokens against ZITADEL with OAuth2
  2. Public Endpoint accessible by any user
  3. Private Endpoint accessible by authenticated user
  4. Private Endpoint accessible by user with role 'admin'
  5. Correct setup for your application in ZITADEL

API App Step-By-Step Guide

After completing the Step-By-Step Guide for an Web application you will have:

  1. Example Web Application with integrated ZITADEL Login
  2. Example page accessible by authenticated user showing retrieved user information
  3. Example page accessible by authenticated user showing polls
    • Votes for polls can only be done if authenticated
    • New polls can be created by user with admin role
  4. Logout
  5. Correct setup for your application in ZITADEL

Web App Step-By-Step Guide