UWCodeForce / student-net

https://uwcodeforce.ca
2 stars 11 forks source link

Setup basic server authentication #16

Closed xTrig closed 2 years ago

xTrig commented 3 years ago

We will be requiring authentication to control access to certain parts of our site.

We will start off with basic email/password authentication, with the possibility of OAuth services later on.

The passwords will need to be hashed, most likely using a library such as bcrypt.

xTrig commented 3 years ago

https://nextjs.org/docs/authentication

Raghuboi commented 3 years ago

I could take this on

Raghuboi commented 3 years ago

@xTrig could you help me out with setting up the sessions? Once that's working possibly there could be a React context set up for accessing a user's session data, which would also be helpful for the user roles issue (https://github.com/UWCodeForce/student-net/issues/32)