0

Is there is any way to add user login/google login and session in wagtail cms? tried adding projects during. how to implement security for wagtail.

Nithish Albin
  • 23
  • 1
  • 5

2 Answers2

1

You can implement this with a Django Social Authentication Plugin. Python Social App - Django is a good plugin to go with: https://github.com/python-social-auth/social-app-django.

jhoover4
  • 46
  • 1
  • 9
-1

you can definaltly achieve this with djago-all-auth module https://django-allauth.readthedocs.io/en/latest/installation.html

  • AFAIK Wagtail is incompatible with allauth: https://github.com/pennersr/django-allauth/issues/1847. – Jonathan Liuti Aug 08 '19 at 12:35
  • huh this seam to be a old issue, at that time (2017) i didn't even know about Wagtail, btw both works fine, i've personnally added allauth to more than one site with Wagtail. It seem like wagtail still not inherit from django's site model it is not an issue. https://github.com/wagtail/wagtail/blob/ef4b37cf5dd3e4b998a65487c58b043842792f4f/wagtail/core/models.py#L49 – adonis__simo Aug 29 '19 at 16:10
  • Well, I faced the problem described in the link I provided. I just wanted to reflect that I lost quite some time with allauth and then switched to social auth which worked flawlessly and your answer could mislead others. If you managed to get allauth working maybe provide an explanation on how you got it to work ? I’ll be glad to upvote this answer. – Jonathan Liuti Aug 31 '19 at 07:39
  • ok but just the fact that i've never got such issue with allauth... it's working on this site for example : www.d-fit.fr – adonis__simo Sep 01 '19 at 00:54
  • As I'm in doubt - I will remove my downvote ;-) Edit: mmm can't do that apparently :( – Jonathan Liuti Sep 02 '19 at 07:44
  • @JonathanLiuti here a video tutorial using django-allauth: https://youtu.be/2QLAc7RJ99s – ladhari Oct 22 '20 at 02:29