Welcome Page: Log In
Closed this issue · 0 comments
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:
- Uses OmniAuth Google DO NOT hand roll the OAuth handshake
- Tests the handshake using OmniAuth mock_auth (see above tips section).