Just wondering how to integrate it with the wagtail admin login system.
I will share any progress.
Thanks.
Peenak Inamdar
unread,
Jan 28, 2016, 4:02:42 AM1/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wagtail support
Hi Daniel,
I'm working on a project that has a similar need, though am starting down the path of using djangae and their gauth integration - i'm running into the issue where the initial login page needs to only supply the google_user id. What progress have you been able to make?
Cheers, Peenak
Daniel
unread,
Jan 28, 2016, 4:45:48 AM1/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wagtail support
Hello Peenak,
Finally the project needs changed so I haven't tried it so much, but I would like to know any updates people make in the subject.
Stephen Knox
unread,
Aug 10, 2017, 8:30:31 AM8/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wagtail support
I'm interested in this too and am looking to implement the Auth0 login system flow.
Looking through the Github issues I assume the LOGIN_URL is no longer relevant.
Any further thoughts people have had or developments appreciated.
Thanks
Stephen
Matthew Westcott
unread,
Aug 11, 2017, 12:36:09 PM8/11/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wag...@googlegroups.com
Hi Stephen,
This should definitely be possible using existing Django extension packages - I believe Django OAuth Toolkit <https://django-oauth-toolkit.readthedocs.io/en/latest/> is the leading one for OAuth support. The trick to overriding the standard Wagtail login flow is to define a URL route for /admin/login/ in your urls.py, above the standard one for /admin/ . Here's an example snippet I've worked on recently (integrating Okta / SAML2 rather than OAuth, but the same principle applies):
A handy new feature in Wagtail 1.12 (release candidate just released this afternoon) is the WAGTAILUSERS_PASSWORD_ENABLED setting - this can be set to False to disable setting passwords on the Django side.
Cheers,
- Matt
Tim Allen
unread,
Aug 11, 2017, 1:11:45 PM8/11/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wagtail support
We're done this with django-allauth, which is fantastic. We provide login via FB, Google or Twitter. After an account is created or linked, you can simply change the account permissions in the Django admin. Then people with appropriate access can hit the Wagtail admin. We just leave the Wagtail login there, for Django-only accounts not linked to a third party login.
Regards,
Tim
Stephen Knox
unread,
Aug 17, 2017, 9:02:06 AM8/17/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message