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

2018-04-24 Thread Prakash D
If i don't remove contrib from middleware, Csrf header will be missing and that's a problem On Tue, Apr 24, 2018, 9:02 PM Avraham Serour wrote: > I wouldn't use two settings to only achieve this, you can add multiple > auth classes which django will try in a loop. > > You can add the JWT and a c

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

2018-04-24 Thread Avraham Serour
I wouldn't use two settings to only achieve this, you can add multiple auth classes which django will try in a loop. 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 t

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