Python Django
![]()  | 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​
- Example API App Repository
 - API App Step-By-Step Guide
 - Example Web App Repository
 - Web App Step-By-Step Guide
 
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
 
What does the Web Application Example include:
- Example Web Application with integrated ZITADEL Login
 - Example page accessible by authenticated user showing retrieved user information
 - 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
 
 - Logout
 - Correct setup for your application in ZITADEL
 
Step-By-Step Guide​
After completing the Step-By-Step Guide for an API you will have:
- Example REST API checking tokens against ZITADEL with OAuth2
 - Public Endpoint accessible by any user
 - Private Endpoint accessible by authenticated user
 - Private Endpoint accessible by user with role 'admin'
 - Correct setup for your application in ZITADEL
 
After completing the Step-By-Step Guide for an Web application you will have:
- Example Web Application with integrated ZITADEL Login
 - Example page accessible by authenticated user showing retrieved user information
 - 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
 
 - Logout
 - Correct setup for your application in ZITADEL
 
