-
Notifications
You must be signed in to change notification settings - Fork 104
[bug 1386383] Login via admin panel raise error #1375
Conversation
6deff2e
to
6340ba0
Compare
Hey @safwanrahman, thank you for this PR and sorry for the long delay on reviewing this. I tried to reproduce the issue by running everything from scratch in the master branch and I get no errors when I try to login in the admin interface. What I tried was:
Can you please add the steps to reproduce this? |
@akatsoulas I have created a screencast of the problem, you can see it here. So I have done following
@akatsoulas I think, your local dev environment has set up with Auth0 OIDC credentials. Therefore you can not reproduce it. Can you try to reproduce it with default configuration? maybe resetting the configuration? |
I updated mozilla-django-oidc to 0.3.1 and changed the name of the middleware as stated in its documentation. Login worked, had infinite redirect loop before adding user to Reps group.
|
Without knowing these libraries too well, I think that would be a cleaner approach to this problem. Would you mind creating a PR for it and I'll test this out? @akatsoulas, @safwanrahman what do you think? |
@mastizada I have tried updating it but some tests seems to fail in Therefore, I think updaing the library version maybe a solution, but its a big task to do! |
@safwanrahman After installing using docs I got few errors (manage.py test):
After updating to new version of May be its skipping oidc tests because I don't have credentials ( |
@mastizada The tests does not depend on |
any updates for this pr? |
It's funny that I wanted to ask for a ping and the last message on the pr is mine about a ping. |
Seems that now is not working anymore or it's me? |
What do you mean? Are you saying that the bug is not there anymore and it works as expected now? |
I am talking about the pr, I applied the code and the problem persist. |
As this should not be necessary anymore, I'm closing this PR. I will talk to tasos next week to see if we can eliminate the other pain point we have regarding local setup. |
So there were some issues that was raising the
SuspiciousOperation
exception. It was fixed inmozilla-django-oidc==0.2.0
. But things need to be fixed before upgrading the version 0.2.0. Therefore override theauthenticate
method inRemoAuthenticationBackend
backend and port the changes.The
superuser
should have access to all page and should not necessarily complete full profile. Fix that issues so local development superuser dont fall into problem.Moreover, fixing a issue where
display_name
become blank if any user create a user form management command without any email.@akatsoulas @johngian r?