UoaWDCC / passport

WDCC Passport project. Established in 2024.

Home Page:https://wdcc-passport.fly.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sign in with Google endpoint

derogative404 opened this issue · comments

Description

This endpoint authenticates a WDCC registered user using their University of Auckland email address and enables them to access their personalised WDCC Passport.

Proposed Solution

Acceptance Criteria

  • Validation procedure implemented to check if the user email address has the domain "aucklanduni.ac.nz"
  • Authentication endpoint and callback endpoint that get users Google account token
  • Store Token in cache
  • Extract user's UPI in the process of Authenticating with Google
  • Use UPI to validate if user is a registered WDCC member or not

Notes

Similar to here: https://github.com/UoaWDCC/wdcc-clubs-mem-checker/tree/main/api/routes/auth

To validate whether a user is a registered WDCC member or not, utilise the following WDCC membership checker API:
https://membership.wdcc.co.nz/api/verify/sejJBBABIXoePtuQlPkbY/UPI/<upi>, substituting <upi> with the UPI of the user.

API should provide a JSON document stating value found in column if the user is registered with WDCC or could not find user in column if the user has not registered with WDCC.

completed