icssc / AntAlmanac

A course exploration and scheduling tool for UCI Anteaters
https://antalmanac.com
MIT License
55 stars 62 forks source link

Sign in with Google #229

Open ChaseC99 opened 2 years ago

ChaseC99 commented 2 years ago

Add a login button to the navbar. Also when users click the "Load" button, provide an "Or sign in with Google" option.

Sign in with Google: https://developers.google.com/identity/gsi/web

This should pair nicely with Amazon Cognito:

ChaseC99 commented 2 years ago

Idk we can use the ICSSC account for this. We may need to do this with a personal account and pass down access year-to-year.

devsdevsdevs commented 2 years ago

Why would we need a personal account for this? It says on the page

The free tier does not automatically expire at the end of your 12 month AWS Free Tier term

ChaseC99 commented 2 years ago

Sorry I wasn't referring to AWS.

If we need a Google Developer account for this, then idk if we could use icssc@uci.edu. UCI disables some Google services (like Google Domains) from being used by @uci.edu accounts. Therefore, we'd need a different account.

I'll checkin with PeterPortal to see how they did it.

ap0nia commented 1 year ago

For the record

User flows:

User's first time on AntAlmanac. This is easy to handle, just go through the normal login flow.

User already has a schedule on AntAlmanac. On login, we should prompt them to import their old schedule.

User started to plan a schedule and then logs in. Right now, logging in will wipe the current schedule. Should we try to maintain that state?

Now if there is an existing schedule or unsaved changes, the user will be prompted to import it when they press the login button.

image

This handles scenarios 2 and 3 with one solution!