-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Google Verification #7631
Google Verification #7631
Conversation
0e4635d
to
74b5920
Compare
Hi @rodgz1622, |
cc @apbendi |
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.
@iRhonin Could you share a video with the whole flow where a user is not Google verified and what the steps are to get themselves verified ?
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.
@iRhonin Could you share a video with the whole flow where a user is not Google verified and what the steps are to get themselves verified?
r'^api/v0.1/profile/verify_user_google', | ||
dashboard.views.verify_user_google, | ||
name='verify_user_google' | ||
), |
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.
^ not very keen on having 2 new endpoints
Ideally I'd say we have one common endpoint
handle/verify/ as a POST operation and based on a body param -> we could decide which flow to send it into
cc @apbendi
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.
Seems good, I will going for that.
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.
I realized google callback URL can not be dynamic, so we can not include the handle parameter in the callback URL.
Another issue, google uses the GET method to call callback URL.
But existing twitter callback uses POST and getting a handle parameter in the URL. to merge them I need to change that.
@thelostone-mc what do you think?
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.
I think it's fine to have separate endpoints
Added to the first comment. |
from oauthlib.oauth2.rfc6749.errors import InvalidGrantError | ||
|
||
try: | ||
google = connect_google() |
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.
Is it possible to ask Google if the account is at least 6 months old? We do this for Twitter, and I think we should here as well.
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.
@apbendi Unfortunately, I did not find any programmatic way to retrieve the account creation date.
Awesome work @iRhonin! I left some feedback, but overall it looks great. Thanks for your contribution :) |
hey @iRhonin, I'm regression testing Google Verification as part of the preparation for Grants Round 8. Can you give me some instruction on how to properly set up a Google OAuth app as a part of my dev environment. I know I need these two env vars:
...but I don't know what to do on the Google side to get these running from my own account for dev purposes. Could you provide some guidance? |
Hello @apbendi, please check this documention |
@iRhonin would you be able to PR a fix for that? happy to pay in ETH :) |
Sure, that is wired, I will fix that. |
Description
Added google verification.
Refers/Fixes
gitcoinco/skunkworks#187
Testing
This feature uses Google as a third-party, so can not test easily, but if you insists, I will find a way.
Senario