I am calling Django API from .NET API. I am passing a validated Bearer token (JWT) in the header. I am not able to read the token from the header in Django API. I am using only functional API views. The users, models and db is managed in .NET only. Why is Django stripping my token in the header? How to enable secured token reading in Django Functional API?
Asked
Active
Viewed 270 times
0
-
what key are you using to send the token? – Vishal Singh Feb 08 '21 at 09:27
-
Are you using Apache? It may be stripping the Authorization header – Iain Shelvington Feb 08 '21 at 09:32
-
The key is 'Authorization'. I am not using Apache server. I checked that as well. Currently just checking on localhost only. – mahati bharadwaj Feb 09 '21 at 05:20
-
https://www.django-rest-framework.org/api-guide/authentication/ – Vishal Singh Feb 09 '21 at 07:11
-
https://stackoverflow.com/questions/10613315/accessing-request-headers-on-django-python – Vishal Singh Feb 09 '21 at 07:12
-
I tried both the links also, long back :( Nothing worked for me. Do I need to add any specific settings? – mahati bharadwaj Feb 10 '21 at 04:47