New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feide verification #3255
Feide verification #3255
Conversation
ABA-91 Add feide authentication
As of now we authenticate users using their student mail. This is not ideal since anyone that is a student at ntnu can then theoretically make a profile at abakus.no and get access to all our events. Instead we should use feide authentication, so we can authenticate not only based on student status, but based on the study a student is enrolled in. In addition it's important to implement a solution for users who are no longer studying data or komtek and students who are planning on transfering to one of these studies, as it's nice to include them in our linjeforening too (and there's quite some people who fall into this category now that are active in the linjeforening) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks clean and good. 💯
What's left to do?
Most of this PR 😅. I'll update the description with some checkboxes so it's more clear :) |
Slightly more left here to polish it off, but I can take reviews on this now :) |
Adds FEIDE verification using OIDC. The user authenticates with our FEIDE app, and we use their groups API to retrieve the users groups, including study programmes. This allows us to verify the students eligibility to become a member in Abakus, and set their grade and program automatically.
A few things left to answer on this: Unique FEIDE usersRight now, there is no check for the same FEIDE account on multiple users. This means that a single FEIDE user can be used to register several users. This would be quite simple to fix by saving the user ID and un-verifying users if they use the same FEIDE account on another user f.ex. What to do with current students?Currently, they keep their grade, but will have Some options are:
|
I have now implemented it in such a way that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3255 +/- ##
==========================================
- Coverage 88.29% 88.15% -0.14%
==========================================
Files 662 663 +1
Lines 21005 20937 -68
==========================================
- Hits 18546 18458 -88
- Misses 2459 2479 +20
☔ View full report in Codecov by Sentry. |
Fixes ABA-520
TODO