Debugging allauth social authentiacation

15 views
Skip to first unread message

ram manoj

unread,
Aug 22, 2018, 7:32:57 AM8/22/18
to Django users
Hey,

I am trying to include social authentication with google to my site with allauth. There are certain requirements to the site. I  am trying to modify the adapters, but modifying a simple adapter is giving the server error. It is not giving what the error is, but just popping a server error.

this is the sample code I wrote --

from allauth.Socialaccount.adapter import DefaultSocialAccountAdapter

class Loginuser(DefaultAccountAdapter):

    def is_open_for_signup(self, request):
        print("hello")
        return False


As per the documentation method, is_open_for_signup is present in both DefaultSocialAccountAdapter and DefaultAccountAdapter classes and any of them can be overridden. But it works fine with class DefaultAccountAdapter and not with other. It only pops a server error and does say what the error is !!
My intention is to find the errors in Django allauth code. Everything is going fine (i.e the OAuth process) but it gives a server error at the callback URL !!!

Need help

thanks
Reply all
Reply to author
Forward
0 new messages