OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Django allauth facebook login redirects to signup page

  • Thread starter Thread starter Marshall
  • Start date Start date
M

Marshall

Guest
I have problem with logging to my app via Facebook. When I'm passing through facebook login form it redirect me to /accounts/social/signup/#= page in my app.

My settings:

Code:
ACCOUNT_USERNAME_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
SOCIALACCOUNT_EMAIL_VERIFICATION = "none"
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_CONFIRM_EMAIL_ON_GET = True
SOCIALACCOUNT_AUTO_SIGNUP = True
ACCOUNT_ADAPTER = "apps.users.adapter.MyAccountAdapter"
SOCIALACCOUNT_ADAPTER = "apps.users.adapter.MySocialAccountAdapter"
ACCOUNT_UNIQUE_EMAIL = False

django-allauth version is 0.41.0 (it's old because it's legacy code)

Interestingly, on test environment django-allauth does not redirect me (the same facebook client and secret and the same config) to signup page.

What may cause the same configuration to work differently in different environments? I've tried with different config but still problem is the same. I don't want to be redirected to signup page.
<p>I have problem with logging to my app via Facebook. When I'm passing through facebook login form it redirect me to <em>/accounts/social/signup/#<em>=</em></em> page in my app.</p>
<p>My settings:</p>
<pre><code>ACCOUNT_USERNAME_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
SOCIALACCOUNT_EMAIL_VERIFICATION = "none"
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_CONFIRM_EMAIL_ON_GET = True
SOCIALACCOUNT_AUTO_SIGNUP = True
ACCOUNT_ADAPTER = "apps.users.adapter.MyAccountAdapter"
SOCIALACCOUNT_ADAPTER = "apps.users.adapter.MySocialAccountAdapter"
ACCOUNT_UNIQUE_EMAIL = False
</code></pre>
<p>django-allauth version is 0.41.0 (it's old because it's legacy code)</p>
<p>Interestingly, on test environment django-allauth does not redirect me (the same facebook client and secret and the same config) to signup page.</p>
<p>What may cause the same configuration to work differently in different environments? I've tried with different config but still problem is the same. I don't want to be redirected to signup page.</p>
Continue reading...
 

Online statistics

Members online
0
Guests online
3
Total visitors
3
Top