Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Authenticate bounty Collaborators using Github OAuth #414

Closed
dckc opened this issue Feb 24, 2018 · 11 comments
Closed

Authenticate bounty Collaborators using Github OAuth #414

dckc opened this issue Feb 24, 2018 · 11 comments
Assignees
Labels
Development splitting into core-dev, developer-education, ...? (guides: @dckc, ...)

Comments

@dckc
Copy link
Contributor

dckc commented Feb 24, 2018

part of #260

see also #413 discord oauth for verifying members

related work: Google OAuth with xataface: https://github.com/dckc/hh-office/tree/master/Auth/gapp

cc @hyperevo

@dckc dckc added the Development splitting into core-dev, developer-education, ...? (guides: @dckc, ...) label Feb 24, 2018
@BelovedAquila BelovedAquila changed the title authenticate bounty collaborators using github OAuth Authenticate bounty Collaborators using Github OAuth Feb 24, 2018
@BelovedAquila
Copy link

@dckc please may I ask what version of OAuth is intended on being used both for the Github open authorization and likewise that of discord on #413?

@dckc
Copy link
Contributor Author

dckc commented Feb 25, 2018

Whatever version the service providers (github, discord) use. I haven't checked. OAuth 2, I suppose.

@BelovedAquila
Copy link

Alright, please is the Github OAuth aimed at authenticating or authorizing, because I use to know OAuth to be a kind of pseudo authenticator not basically for authentication, though an exception if a new version which does that is actually onboard

@hyperevo
Copy link

I have implemented a bare bones github oauth. Progress is moving ahead nicely. I forked the original bounty website code here that includes xataface and github oauth: https://github.com/hyperevo/rchain-dbr

@hyperevo
Copy link

hyperevo commented Mar 3, 2018

I updated the repo. Did a lot more testing and updating to improve security. Github Oauth integration is fully functional now. The xataface use menu system has been updated to allow login, logout, and coop member verification via discord oauth.

@dckc
Copy link
Contributor Author

dckc commented Mar 5, 2018

@hyperevo writes:

Ian thinks we need to get email addresses. -- March 4

I'm pretty sure we don't. @ian-bloom would you please clarify?

Even if we need email addresses, I doubt we should get them from github.

@dckc dckc added this to the bounty web app transition milestone Mar 7, 2018
@dckc
Copy link
Contributor Author

dckc commented Mar 8, 2018

@hyperevo I pulled your code in as https://github.com/dckc/rchain-dbr/commits/gauth-evo; but then as we discussed, I squashed the commits that removed code we didn't write, so please pick up from this branch: https://github.com/dckc/rchain-dbr/commits/gauth .

I did a little work on automated deployment on top: currently 7684885.

@dckc
Copy link
Contributor Author

dckc commented Mar 8, 2018

@hyperevo the login workflow does a lot of what I expect, but when it gets back to .../github_auth_callback.php?code=... I get could not write to database.

The new code is deployed at http://rchain-dbr.nfshost.com/rchain-dbr-beta/

@dckc
Copy link
Contributor Author

dckc commented Mar 8, 2018

ah... I see... more columns are expected in the database. Did you update dbr_tables.sql or write any migrations?

And I'm still not comfortable with the approach to preventing SQL injection: hyperevo/rchain-dbr@c29f464#r27940071

@dckc
Copy link
Contributor Author

dckc commented Mar 8, 2018

We're just about ready to claim victory on this one.

The session_token column is too visible; that seems like the one remaining critical issue.

I re-worked the way the SQL query is built:

I don't have the discord part wired up yet, though.

@dckc
Copy link
Contributor Author

dckc commented Mar 11, 2018

The session_token is hidden now.

dckc/rchain-dbr@6ee5030

@dckc dckc closed this as completed Mar 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development splitting into core-dev, developer-education, ...? (guides: @dckc, ...)
Projects
None yet
Development

No branches or pull requests

3 participants