# \#django

**URL:** https://community.auth0.com/tag/django/943.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [JWT invalid signature in Mobile + API (Swift + Django)](https://community.auth0.com/t/jwt-invalid-signature-in-mobile-api-swift-django/106960)

<div class="topic-metadata">

**Author:** [@ferranconde](https://community.auth0.com/u/ferranconde)\
**Replies:** 3\
**Last updated:** [May 17, 2023, 6:25pm UTC](https://community.auth0.com/t/jwt-invalid-signature-in-mobile-api-swift-django/106960 "2023-05-17T18:25:14Z")

</div>

Hello everyone, I’m implementing an iOS application that needs to communicate with a Python/Django backend. For that, I am following the Mobile + API architecture scenario. Instead of Android and Node.js, I am following…

---

## [Secure api requests from react to django backend](https://community.auth0.com/t/secure-api-requests-from-react-to-django-backend/89453)

<div class="topic-metadata">

**Author:** [@k.impolevicius](https://community.auth0.com/u/k.impolevicius)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 10:44pm UTC](https://community.auth0.com/t/secure-api-requests-from-react-to-django-backend/89453 "2022-08-26T22:44:48Z")

</div>

I have web app. This consist of services deployed on Docker engine. The main services/containers are: Frontend : React on Nginx web server Backend (API) : Django, DRF on gunicorn on Nginx For frontend I use Auth0. It …

---

## [How to implement Auth0's Direct Password Change feature using Management API in Django?](https://community.auth0.com/t/how-to-implement-auth0s-direct-password-change-feature-using-management-api-in-django/88861)

<div class="topic-metadata">

**Author:** [@khubikhawar](https://community.auth0.com/u/khubikhawar)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 9:47pm UTC](https://community.auth0.com/t/how-to-implement-auth0s-direct-password-change-feature-using-management-api-in-django/88861 "2022-08-26T21:47:16Z")

</div>

Hi there, I have a Django App, and I am trying to use Auth0 for my Django App’s authentication. I have successfully integrated Login and Logout using social-auth-app-django library. But I am facing a lot of hurdles in i…

---

## [How do I get user deleted from Django database when I delete from Auth0 users and vice versa?](https://community.auth0.com/t/how-do-i-get-user-deleted-from-django-database-when-i-delete-from-auth0-users-and-vice-versa/88716)

<div class="topic-metadata">

**Author:** [@khubikhawar](https://community.auth0.com/u/khubikhawar)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 9:22pm UTC](https://community.auth0.com/t/how-do-i-get-user-deleted-from-django-database-when-i-delete-from-auth0-users-and-vice-versa/88716 "2022-08-26T21:22:03Z")

</div>

Hi there, I am using Auth0 with my Django App for users login/logout authentication. I want a way that when I delete any User from Auth0, the same user account should be deleted from Django Database, likewise if I delet…

---

## [OperationalError where it says that column userprofile\_id and id are incompatible. Any suggestions?](https://community.auth0.com/t/operationalerror-where-it-says-that-column-userprofile-id-and-id-are-incompatible-any-suggestions/80231)

<div class="topic-metadata">

**Author:** [@monhelle](https://community.auth0.com/u/monhelle)\
**Replies:** 3\
**Last updated:** [March 21, 2022, 9:45am UTC](https://community.auth0.com/t/operationalerror-where-it-says-that-column-userprofile-id-and-id-are-incompatible-any-suggestions/80231 "2022-03-21T09:45:38Z")

</div>

Hello I am trying to set up authorization through django api. I am also using machine to machine since I am going to set it up with BankID. I have followed the documentation step by step and made sure I am logged in m…

---

## [Auth0 with Django taking very long to complete login](https://community.auth0.com/t/auth0-with-django-taking-very-long-to-complete-login/80010)

<div class="topic-metadata">

**Author:** [@tayupov](https://community.auth0.com/u/tayupov)\
**Replies:** 3\
**Last updated:** [March 17, 2022, 1:03pm UTC](https://community.auth0.com/t/auth0-with-django-taking-very-long-to-complete-login/80010 "2022-03-17T13:03:44Z")

</div>

Hi everyone, I’m currently working on a small Django project that requires a login and I wanted to use Auth0, since I’ve used it in passed project. I followed a couple of guides, mainly: https://auth0.com/blog/django-…

---

## [Introduction to Django 3.0 - Building, Authenticating, and Deploying - Part 1](https://community.auth0.com/t/introduction-to-django-3-0-building-authenticating-and-deploying-part-1/42127)

<div class="topic-metadata">

**Author:** [@bachi.degli-innocent](https://community.auth0.com/u/bachi.degli-innocent)\
**Replies:** 10\
**Last updated:** [July 2, 2020, 12:14pm UTC](https://community.auth0.com/t/introduction-to-django-3-0-building-authenticating-and-deploying-part-1/42127 "2020-07-02T12:14:18Z")

</div>

Learn to build Django web applications in minutes and deploy them to production Brought to you by Vihar Kurama (Guest Author) Read more

---

## [Auth0+Django Setting Roles and Permissions](https://community.auth0.com/t/auth0-django-setting-roles-and-permissions/78702)

<div class="topic-metadata">

**Author:** [@ovezovv](https://community.auth0.com/u/ovezovv)\
**Replies:** 3\
**Last updated:** [March 2, 2022, 1:25am UTC](https://community.auth0.com/t/auth0-django-setting-roles-and-permissions/78702 "2022-03-02T01:25:49Z")

</div>

When I implement Auth0 Authentication and “Set Roles to User” Rule function (user, context, callback) { const namespace = 'https://dev-o0hx8kbg.us.auth0.com'; const assignedRoles = (context.authorization || {}).role…

---

## [/userinfo dj-rest-auth](https://community.auth0.com/t/userinfo-dj-rest-auth/76545)

<div class="topic-metadata">

**Author:** [@dhruvsingh](https://community.auth0.com/u/dhruvsingh)\
**Replies:** 1\
**Last updated:** [January 20, 2022, 9:37pm UTC](https://community.auth0.com/t/userinfo-dj-rest-auth/76545 "2022-01-20T21:37:49Z")

</div>

I’m trying to integrate Auth0 with dj-rest-auth which is built on top of all-auth. I correctly set the settings on Django Rest Framework side, but I’m unsure about: What should the url for AUTH0\_URL be? Is it the same…

---

## [Django Auth0 Read user\_metadata](https://community.auth0.com/t/django-auth0-read-user-metadata/67976)

<div class="topic-metadata">

**Author:** [@uripre](https://community.auth0.com/u/uripre)\
**Replies:** 5\
**Last updated:** [August 17, 2021, 9:42am UTC](https://community.auth0.com/t/django-auth0-read-user-metadata/67976 "2021-08-17T09:42:39Z")

</div>

After following auth0’s quick start, I can’t seem to find a way to access the logged-in user’s “user\_metadata” in django. Anyone else tried to achieve this with django and can share how? I followed the following quick s…

---

## [Wrong password for imported users from Django](https://community.auth0.com/t/wrong-password-for-imported-users-from-django/61105)

<div class="topic-metadata">

**Author:** [@Quantra](https://community.auth0.com/u/Quantra)\
**Replies:** 2\
**Last updated:** [April 15, 2021, 12:46pm UTC](https://community.auth0.com/t/wrong-password-for-imported-users-from-django/61105 "2021-04-15T12:46:01Z")

</div>

I have a Django app that I want to import the users from into Auth0. I am able to do this but when I try and log in using my email and password which has been imported I get ‘Wrong email or password.’ I would like to k…

---

## [Decode() missing 1 required positional argument: 'key'](https://community.auth0.com/t/decode-missing-1-required-positional-argument-key/56751)

<div class="topic-metadata">

**Author:** [@adhingafredrick](https://community.auth0.com/u/adhingafredrick)\
**Replies:** 5\
**Last updated:** [February 5, 2021, 9:09pm UTC](https://community.auth0.com/t/decode-missing-1-required-positional-argument-key/56751 "2021-02-05T21:09:50Z")

</div>

I have a problem with my login authentication using jwt in Django here’s is the code views.py Blockquote def Home(request): token = request.session\[‘id\_token’\] userinfo = jwt.decode(token, options={"verify\_signat…

---

## [Django web app - how to stay logged in](https://community.auth0.com/t/django-web-app-how-to-stay-logged-in/52718)

<div class="topic-metadata">

**Author:** [@joshendy](https://community.auth0.com/u/joshendy)\
**Replies:** 1\
**Last updated:** [November 5, 2020, 10:30pm UTC](https://community.auth0.com/t/django-web-app-how-to-stay-logged-in/52718 "2020-11-05T22:30:03Z")

</div>

Hi there, I’ve just started using auth0 in a project and have a strange use case where I want to display my web app 24/7 on a TV which auto refreshes every half hour. Problem being after 1 month (the max allowed period)…

---

## [Auth0 for Django App on IOS - Problem](https://community.auth0.com/t/auth0-for-django-app-on-ios-problem/44349)

<div class="topic-metadata">

**Author:** [@it18](https://community.auth0.com/u/it18)\
**Replies:** 7\
**Last updated:** [June 17, 2020, 10:57am UTC](https://community.auth0.com/t/auth0-for-django-app-on-ios-problem/44349 "2020-06-17T10:57:19Z")

</div>

I have a django web application that implements auth0 and works beautifully on any browser on pcs, macs and android, but when users started trying to go to my website from an iOS device (iphone, ipad, etc.), they found t…

---

## [Single login redirects to different apps](https://community.auth0.com/t/single-login-redirects-to-different-apps/43996)

<div class="topic-metadata">

**Author:** [@avani.bhatnagar](https://community.auth0.com/u/avani.bhatnagar)\
**Replies:** 5\
**Last updated:** [June 12, 2020, 1:26pm UTC](https://community.auth0.com/t/single-login-redirects-to-different-apps/43996 "2020-06-12T13:26:08Z")

</div>

I’m using Django for my auth0 app. I have 2 test apps in auth 0 and I have 2 Django apps running on separate ports - 5000 and 5001 they login to their respective apps. They are authenticating users correctly separately. …

---

## [Auth0 redirect doesn't work - Server Error (500) (via Django on Heroku)](https://community.auth0.com/t/auth0-redirect-doesnt-work-server-error-500-via-django-on-heroku/21135)

<div class="topic-metadata">

**Author:** [@marcoEDU](https://community.auth0.com/u/marcoEDU)\
**Replies:** 1\
**Last updated:** [February 11, 2019, 6:45pm UTC](https://community.auth0.com/t/auth0-redirect-doesnt-work-server-error-500-via-django-on-heroku/21135 "2019-02-11T18:45:55Z")

</div>

I can’t get Auth0 to work… Current setup: Auth0 via Django, hosted on Heroku. Already checked the settings file, folder structure and auth0 script, but couldn’t find any issues… Algolia logs say login succeeded,…

---

## [2 servers with auth0, 1 spa](https://community.auth0.com/t/2-servers-with-auth0-1-spa/8492)

<div class="topic-metadata">

**Author:** [@sprintforyourlife](https://community.auth0.com/u/sprintforyourlife)\
**Replies:** 1\
**Last updated:** [October 16, 2017, 3:32pm UTC](https://community.auth0.com/t/2-servers-with-auth0-1-spa/8492 "2017-10-16T15:32:02Z")

</div>

We have a legacy server that is accessed by a web SPA via auth0. We have a new django server that has some new API endpoints that the SPA needs access to. Is it possible to set up auth0 on the new server and then somehow…
