django-allauth

Django allauth google OAuth redirect_uri_mismatch error

断了今生、忘了曾经 提交于 2020-12-30 02:12:34
问题 I am using Google OAuth for my Django App (via allauth package) I have followed all standard configuration steps. In Google Developer console here's what i have: Authorized JavaScript origins https://example.com Authorized redirect URIs https://example.com/accounts/google/login/callback/ - login fails http://example.com/accounts/google/login/callback/ - login succeeds What i observe that if i have a https redirect URL in Authorized redirect URIs, it does not allow login and it fails with

How to test email confirmation?

你离开我真会死。 提交于 2020-12-15 08:41:30
问题 I'm trying to make a test for the email confirmation view with django-rest-auth. Here is what I have: def test_verify_email(self): # Verify email address username = 'userTest' payload = { 'email': 'test@example.com', 'password1': 'TestpassUltra1', 'password2': 'TestpassUltra1', 'username': username, } res = self.client.post(REGISTER_USER_URL, payload) self.assertEqual(res.status_code, status.HTTP_201_CREATED) user = get_user_model().objects.get(email='test@example.com') # TODO retrieve the

ImproperlyConfigured at /rest-auth/registration/account-confirm-email

梦想与她 提交于 2020-12-08 06:28:25
问题 I'm using django-rest-auth for user signup and verify email. I'm able to successfully send the email when a user signs up. Howvever, on email verification, I'm getting this error with the following traceback: File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Library/Python/2.7/site-packages/django/views/generic/base.py" in view 69. return self.dispatch(request, *args, *

ImproperlyConfigured at /rest-auth/registration/account-confirm-email

自闭症网瘾萝莉.ら 提交于 2020-12-08 06:27:49
问题 I'm using django-rest-auth for user signup and verify email. I'm able to successfully send the email when a user signs up. Howvever, on email verification, I'm getting this error with the following traceback: File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Library/Python/2.7/site-packages/django/views/generic/base.py" in view 69. return self.dispatch(request, *args, *