k4cg / heiko

Heiko is a frontend for MaaS
MIT License
4 stars 1 forks source link

Implement RFID Auth #5

Closed noqqe closed 5 years ago

noqqe commented 5 years ago

Write Bearer Token from backend to RFID Card

Needed:

blarz commented 5 years ago

Do we have appropriate RFID reader/write hardware? IIRC I left mine for exactly that purpose?

noqqe commented 5 years ago

Yep, we still have the hardware.

I was basically not able to properly use pynfc or nfcpy and failed getting the connection to the device.

Being desperate, I was trying to recompile the binary blob that was used in the past at k4cg/matomat using libnfc from the debian repos and later doing an exec to this. But same here, failed with build errors.

Would need some help here.

However, implementation of the Auth would be different. A sketch was already done here: https://github.com/k4cg/matomat-service#what-about-rfidnfc-chip-based-login

blarz commented 5 years ago

Yes I read the part about auth in server, sounds nice!

Somebody on the mailinglist was volunteering to get this working for CCCamp. Maybe he tried something else.

blarz commented 5 years ago

Seems like @chca42 is working on it ;)

chca42 commented 5 years ago

Yes, I'm currently working on this with good progress ;-) I have built a python module for reading and writing cards. The JWT Token can already be written, auth and retrieval is work in progress.

blarz commented 5 years ago

I have not seen the feature in action, but what is the state of this issue? Can it be closed?

chca42 commented 5 years ago

NFC Auth is now implemented and deployed on matomat.