0

I was making a registration portal using in Django 4 using Google OAuth2 and need to register people only with a specific domain like abc@akgec.ac.in but I'm not able to figure out how to do it. I'm using social-auth-app-django for setting up Google OAuth Authentication. Can anyone help me?

I have tried using

SOCIAL_AUTH_GoogleOAuth2_WHITELISTED_DOMAINS = ['akgec.ac.in']

but it's not working too.

0 Answers0