GEWIS / sudosos-frontend

This monorepo contains all frontend projects and shared code for the SudoSOS platform, built with Vue 3 and TypeScript. Contributions are welcome!
https://sudosos.gewis.nl
3 stars 3 forks source link

[Feature] NFC Authentication #351

Open Yoronex opened 2 days ago

Yoronex commented 2 days ago

Is this a feature for the SudoSOS point of sale or for the SudoSOS dashboard?

Both

What would you like?

Implementation of NFC Authentication on the frontend, which (preferably) includes an implementation in both the POS and the Dashboard. It contains the following functionality separated into standalone requirements. I have already made my personal prioritization, but feel free to change this.

Must-have

Should-have

Could-have

As far as I am aware, the could-have was not supported in SuSOS. However, it might be nice to include it as an extra possible identification flow. Furthermore, it could also be used to support a SudoSOS-card system (where you get a bronze/silver/gold/platinum NFC card based on your SudoSOS spending).

Why is this needed?

People can then (finally) use their campus card or OV chipkaart to log in on the POS.

Other information

Current implemented endpoints on the backend should support all aforementioned requirements. There is currently no way to find users based on their NFC Authenticator, but you can simply use the authentication endpoint to see if any user exists. The authentication endpoint also returns the user, and not only a JWT token.

JustSamuel commented 2 days ago

Current implemented endpoints on the backend should support all aforementioned requirements. There is currently no way to find users based on their NFC Authenticator, but you can simply use the authentication endpoint to see if any user exists. The authentication endpoint also returns the user, and not only a JWT token.

Returning a signed JWT token just to throw it a way seems iffy