Skip to content
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

User Dashboard: Github OAuth #13

Open
1 of 2 tasks
jmejia opened this issue Dec 3, 2018 · 0 comments
Open
1 of 2 tasks

User Dashboard: Github OAuth #13

jmejia opened this issue Dec 3, 2018 · 0 comments

Comments

@jmejia
Copy link
Collaborator

jmejia commented Dec 3, 2018

Details: We want a user to have the option to connect their Github account and retrieve a user specific token automatically.

As a user
When I visit /dashboard
Then I should see a link that is styled like a button that says "Connect to Github"
And when I click on "Connect to Github"
Then I should go through the OAuth process
And I should be redirected to /dashboard
And I should see all of the content from the previous Github stories (repos, followers, and following)

Tips: Testing this is tricky. Don't worry about testing during the spike. In fact, TDD'ing this is really tricky if you've never done it before. Get a working implementation first even when you are pairing and backfill a test. You should not try to fill out the form and click buttons on Github in your tests. Omniauth gives us a special way to test this. Use these docs as a starting point: https://github.com/omniauth/omniauth/wiki/Integration-Testing

  • Uses Omniauth Github (does not hand roll the OAuth handshake)
  • Tests the handshake using Omniauth Mock Auth (see above tips section).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants