issues
search
cthit
/
chalmers.it
A 2023/2024 rewrite of the main website of the Software Engineering (IT) student division at Chalmers
https://beta.chalmers.it
1
stars
1
forks
source link
Authentication with Gamma 2.0
#53
Closed
GAsplund
closed
2 months ago
GAsplund
commented
2 months ago
Key Features:
Switch primary auth provider to Gamma 2.0
Determine "active" super groups on their type using an environment variable
Refactor code to use the (only) two API endpoints
Greatly decreases the function complexity (thanks Portals!)
Remove CIDs from data structures
Side note:
We shouldn't use CIDs for any identification to begin with, as they:
Are not 100% certain to always exist (can be renamed or deleted by Chalmers at any time)
Expose additional personal data (as CIDs are usually a combination of first name and last name)
Move all models to
src/types
and document a few
Document environment variables
Ability for admin super groups to delete news posts
Known Issues:
Database schema still mentions
writtenByUserCid
- this will be changed in a later PR
There are no checks for authorities
ESLint complains about unused items in
next-auth.d.ts
- this is false as it redefines types used in authentication logic
Key Features:
src/types
and document a fewKnown Issues:
writtenByUserCid
- this will be changed in a later PRnext-auth.d.ts
- this is false as it redefines types used in authentication logic