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