I followed the guide on integration with Django Framework and it’s working as expected. The problem is that on the Django side, I need to log in the user to implement the logic, but the sample code doesn’t authenticate the user, it only replaces the user object in the request:
request.session["user"] = token
I tried to utilize authenticate function from Django but it doesn’t work:
Any work around on this?
It seems like you’ve used the function from Django framework itself. Have you had a chance to check out the 6th section on this tutorial?
It will guide you how to handle authentication
Thanks, @konrad.sopala. I went through the guide, and it works as mentioned.
However, I need to send some information to the view that is not available by default. For example, I need to extract the username contained in the JWT, but I can’t figure out how to do that.
Do you have any other documentation that go into more advanced use cases?