[Django] #30433: Authentication system is not working with Google Chrome for django 2.1 and 2.2.1

7 views
Skip to first unread message

Django

unread,
May 2, 2019, 2:39:38 PM5/2/19
to django-...@googlegroups.com
#30433: Authentication system is not working with Google Chrome for django 2.1 and
2.2.1
-------------------------------------+-------------------------------------
Reporter: Anurag | Owner: nobody
Anurag GundappaGundappa |
Type: Bug | Status: new
Component: CSRF | Version: 2.2
Severity: Release | Keywords: login, CSRF
blocker |
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I am using django 2.2.1 for my personal project . It is observed that
django admin and custom user login works fine with Firefox but when tried
to login with same URL on Google Chrome version 74, that doesn't works and
throws CSRF token error. I experienced this issue on Windows 10 and
Ubuntu 19.04. I could not even sign up for djangoproject with Google
chrome. I have hosted same project on heroku and pythonanywhere but still
the login behaviour was same. Django 2.1 and 2.2.1 are only allowing user
login from Firefox and not with Chrome. I double checked my Login views
but there is no problem with my views . TO verify this I created new
project with django 2.0 and user login is working as expected with
FIrefox and Chrome both. At first I thought login only working with
default browser so I tried setting Chrome as my default browser but no
luck

--
Ticket URL: <https://code.djangoproject.com/ticket/30433>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 2, 2019, 2:42:09 PM5/2/19
to django-...@googlegroups.com
#30433: Authentication system is not working with Google Chrome for django 2.1 and
2.2.1
-------------------------------------+-------------------------------------
Reporter: Anurag Anurag | Owner: nobody

GundappaGundappa |
Type: Bug | Status: new
Component: CSRF | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: login, CSRF | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Anurag Anurag GundappaGundappa):

* Attachment "django bug.png" added.

The screenshot showing sign up error on djangoproject with Chrome

Django

unread,
May 2, 2019, 2:43:09 PM5/2/19
to django-...@googlegroups.com
#30433: Authentication system is not working with Google Chrome for django 2.1 and
2.2.1
-------------------------------------+-------------------------------------
Reporter: Anurag Anurag | Owner: nobody

GundappaGundappa |
Type: Bug | Status: new
Component: CSRF | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: login, CSRF | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Anurag Anurag GundappaGundappa):

* Attachment "django bug2.png" added.

Login failure on chrome for my project

Django

unread,
May 2, 2019, 2:49:45 PM5/2/19
to django-...@googlegroups.com
#30433: Authentication system is not working with Google Chrome for django 2.1 and
2.2.1
---------------------------------+------------------------------------
Reporter: Anurag Gundappa | Owner: nobody

Type: Bug | Status: new
Component: CSRF | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: login, CSRF | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Anurag Gundappa):

* stage: Unreviewed => Accepted


Old description:

> I am using django 2.2.1 for my personal project . It is observed that
> django admin and custom user login works fine with Firefox but when
> tried to login with same URL on Google Chrome version 74, that doesn't
> works and throws CSRF token error. I experienced this issue on Windows
> 10 and Ubuntu 19.04. I could not even sign up for djangoproject with
> Google chrome. I have hosted same project on heroku and pythonanywhere
> but still the login behaviour was same. Django 2.1 and 2.2.1 are only
> allowing user login from Firefox and not with Chrome. I double checked my
> Login views but there is no problem with my views . TO verify this I
> created new project with django 2.0 and user login is working as
> expected with FIrefox and Chrome both. At first I thought login only
> working with default browser so I tried setting Chrome as my default
> browser but no luck

New description:

I am using django 2.2.1 for my personal project . It is observed that
django admin and custom user login works fine with Firefox but when tried
to login with same URL on Google Chrome version 74, that doesn't works and
throws CSRF token error. I experienced this issue on Windows 10 and
Ubuntu 19.04. I could not even sign up for djangoproject with Google
chrome.

I have hosted same project on heroku and pythonanywhere but still the
login behaviour was same. Django 2.1 and 2.2.1 are only allowing user
login from Firefox and not with Chrome. I double checked my Login views
but there is no problem with my views . TO verify this I created new
project with django 2.0 and user login is working as expected with
FIrefox and Chrome both. At first I thought login only working with
default browser so I tried setting Chrome as my default browser but no

luck.

On Windows 10 I could only login to my project with Microsoft Edge but not
with Chrome.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/30433#comment:1>

Django

unread,
May 2, 2019, 2:51:29 PM5/2/19
to django-...@googlegroups.com
#30433: Authentication system is not working with Google Chrome for django 2.1 and
2.2.1
---------------------------------+--------------------------------------

Reporter: Anurag Gundappa | Owner: nobody
Type: Bug | Status: new
Component: CSRF | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: login, CSRF | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Anurag Gundappa):

* stage: Accepted => Unreviewed


--
Ticket URL: <https://code.djangoproject.com/ticket/30433#comment:2>

Django

unread,
May 3, 2019, 2:03:22 AM5/3/19
to django-...@googlegroups.com
#30433: Authentication system is not working with Google Chrome for django 2.1 and
2.2.1.

---------------------------------+--------------------------------------
Reporter: Anurag Gundappa | Owner: nobody
Type: Bug | Status: closed
Component: CSRF | Version: 2.2
Severity: Normal | Resolution: needsinfo

Keywords: login, CSRF | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => needsinfo
* severity: Release blocker => Normal


Comment:

Thanks for the report, however login on Chrome browser works for me with
Django 2.1, 2.2, and on master. Can you provide an example project to
reproduce this issue? Maybe there is some problem with session engine, or
cookie settings etc., but it's hard to tell without details or an example
project.

You should start from one of
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels].

--
Ticket URL: <https://code.djangoproject.com/ticket/30433#comment:3>

Reply all
Reply to author
Forward
0 new messages