Re: Porting from Cookie based authentication to JWT (except admin portal)

2018-04-24 Thread Prakash D
; You can add the JWT and a custom class which can baseclass the > login/password auth and only allow superusers to login > > On Tue, Apr 24, 2018 at 6:18 PM, Prakash D wrote: > >> Hi I'm trying to port an existing application (which uses Django admin >> portal) to

Porting from Cookie based authentication to JWT (except admin portal)

2018-04-24 Thread Prakash D
Hi I'm trying to port an existing application (which uses Django admin portal) to JWT authentication system so I can support native mobile clients. My proposed solution is having two manage.py files (will run on seaparate port numbers) and two settings.py files which will have different url

Django custom middlware routing

2018-04-24 Thread Prakash D
I have a Django project which uses django's contrib library for session management using cookies (for both Admin panel and User authentication). Now I'm migrating to JWT token based authentication system. I do not want to re-build an admin portal. My current settings.py looks like this MID