Closed subhankarb closed 7 years ago
@subhankarb just flagged we also need to fix the dpr-deploy
script.
@subhankarb you'll also need to remember to change deploy config on next deploy (probably when we merge dpr-js stuff in frictionlessdata/dpr-js#119)
Reopening:
Sign in experience
The sign in / sign up buttom takes you to a github page immediately with no context. You need at least some intervening page or modal that is our "sign up" page that says something like: "Sign up with your github account".
Bug in signin
I tried signing in and got:
{
"error_code": "GENERIC_ERROR",
"message": "'NoneType' object has no attribute 'encode'"
}
@rufuspollock about the error 'NoneType' object has no attribute 'encode'
. I did not handled for private email. If the user makes the email private we can not get it. And code is not handled for empty email address.
goodtables.io has a signin flow for GitHub, for your reference, which deals with inaccessible emails, seeing as we are still somehow avoiding copy/paste of a tested and working OS auth implementation.
BTW, as the GitHub auth API does not guarantee that it provides emails, you obviously can't rely on sending welcome emails and so on. I still contend that this is not a problem, and is in fact quite common in oauth backed signin flows.
@pwalsh thanks. I just found it. and FIXED.
@pwalsh is there a ref for the goodtables implementation.
https://github.com/frictionlessdata/goodtables.io/blob/master/goodtablesio/auth.py
And blueprint for handling flow.
@rufuspollock added github icon in signin button
FIXED.
Note we are still not getting a guaranteed user email -- only getting an email if it is public.
Reason and solution for this is in http://stackoverflow.com/questions/35373995/github-user-email-is-null-despite-useremail-scope
To get private emails we need to call:
GET https://api.github.com/user/emails
We have Auth0 as out authentication system. We want to implement OAuth authentication replacing Auth0.
Tasks
auth0-id
from user tablemanager.py
scriptAcceptance Criteria