icssc / AntAlmanac

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

feat: initial auth backend #906

Closed ap0nia closed 5 months ago

ap0nia commented 7 months ago

Features (based on #890)

Correct columns in schema

The id column is required and the primary key for identification. The googleId is optional, and populated once the user has logged in with Google OAuth. Users logging in via Google will be checked using the googleId column instead of id column.

Functionality

Loading user data

No visibility checks, just loads the schedule as asked. This may be adjusted to be more like the "viewing" functionality, which isn't currently active on the frontend.

Viewing user data

Assumes a user ID requesting another user ID flow. Checks that the requested schedule is visible.

ap0nia commented 7 months ago

Oops, yeah I forgot about the discussion. Re: #890

MinhxNguyen7 commented 5 months ago

Seems about right ¯_(ツ)_/¯

MinhxNguyen7 commented 5 months ago

I'm not entirely sure what's going on, and I don't know what the risks are to merging this, so you can merge it in when you feel fit @ap0nia