matekeller / Matekasse-Website

User side version of the MateMate App
0 stars 0 forks source link

Self Enrollment of Smart Cards #2

Open lucasoethe opened 6 months ago

lucasoethe commented 6 months ago

It would be cool if users could self-enroll their smart cards. This could be achieved by changing the QR Code on the "New smart card" page of the kiosk to contain a URL such as https://matekasse.de/enroll/[id] or something similar and then have the matekasse.de website have the user log in and subsequently link the smartcard ID to the user.

Gameheld commented 6 months ago

@Empty2k12 @msrd0 opinions?

msrd0 commented 6 months ago

sounds like a good idea

Gameheld commented 6 months ago

Please open issue in correct repo then.

Gameheld commented 6 months ago

This is impossible to implement right now because a Bearer token with admin permissions would be needed. If we don't want to use an admin token (which gives access to all other API functions such as purchasing and topping up as well) there would need to be another user group in the backend (@msrd0) that only has access to account creations.