Closed iandouglas closed 4 years ago
include the appropriate scopes for the users authorization
Are there different types of user roles? Ie. admin / regular?
We will have to explore the rest of the user stories to see.
After looking through the user stories, it sounds like the only user role is the authenticated user
As a user, When I visit the root path, I should see a button to Log In with Google
Details: Implement Google OAuth 2.0 For the application, you will need the user to authorize access to their email or profile, as well as, calendar events. As part of the OAuth process, you will need to include the appropriate scopes for the users authorization. This documentation may be helpful.
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 Google in your tests. Omniauth gives us a special way to test this. Use these docs as a starting point: