-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Google OAuth Signup in the backend #112
base: develop
Are you sure you want to change the base?
Conversation
@chinmaym07 can you please fix the conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chinmaym07 could you please add some tests to this pr.
@chinmaym07 Please resolve the merge conflicts and write a test for your implementation. |
@chinmaym07 can you please update your branch? That way tests may pass |
Yes @isabelcosta I am writing a test for Google Oauth signup ..I'll update the branch with it .Sorry for the inconvenience |
no inconvenience at all :) |
@chinmaym07 Any updates? |
@codesankalp I will soon complete this ..Sorry for the delay.. |
@chinmaym07 Can you update your progress @chinmaym07? |
Codecov Report
@@ Coverage Diff @@
## develop #112 +/- ##
===========================================
+ Coverage 64.88% 65.32% +0.44%
===========================================
Files 64 65 +1
Lines 1031 1047 +16
===========================================
+ Hits 669 684 +15
- Misses 362 363 +1
Continue to review full report at Codecov.
|
@codesankalp I have tried to write the test . |
self._get_google_response() | ||
user_count = get_user_model().objects.all().count() | ||
|
||
response = self.client.post(self.google_signup_url, data=self.payload, format="json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the payload @chinmaym07. Why are you posting access_token in the payload?
The payload must contain the thing that we pass from the frontend?
@@ -14,4 +15,7 @@ | |||
# login URLs | |||
path("token/", TokenObtainPairView.as_view(), name="token_obtain_pair"), | |||
path("refresh/", TokenRefreshView.as_view(), name="token_refresh"), | |||
# social-authentication | |||
path("google/", GoogleLogin.as_view(), name="google_login"), | |||
url(r"^accounts/", include("allauth.urls"), name="socialaccount_signup"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you are including all URLs of all-auth?
@chinmaym07 Can you update your progress here? |
So Sorry for the delay here .. Will update both the PR's by this week . |
@chinmaym07 feel free to drop the issue. you can always come back later when you become available ;) |
Description
Fixes #30
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Checklist:
requirements.txt
Code/Quality Assurance Only