This repo is an api layer on card reader, it controls the whole authentication procdure of voting. Mrecurius-union interacts with staff through web front-end (mercurius-panel) and sending reqest to auth server and vote server, in addition, it receives card id of student id card from another card reader project through standard HTTP request.
- auth server: A server handles the identity verification process and ballot-casting.
- vote server: A server handles the voting process.
- card reader: A device which can read student identity card, this project runs on it.
- vote tablet: Tablets for voting.
- auth tablet: Tablet for staff to receive infomation from auth server and vote server. Also referes it as client.
The content format is JSON encoded by default.
Emit this event when a student identity card is been accepted by auth server. Then the client can emit a event respectively to accept or reject this student id card.
- id
- type
- department
After received accept
event, card reader will interact with auth server and vote server to complete the whole authentication process, and return a number that indicates a vote tablet.
- student_id
- slot: to indicate the number of the tablet
Messages including error message from auth server and vote server. A raw string.
Inform that card is been attached. A raw string contains student id.
Station name.
A raw string.
Accept a student's voting request.
Reject a student's voting request.
Clear message
Receive infomation of the card here.
- student_id
- card_id
For login auth server
- username
- password
Squirrel a.k.a. azdkj532
- Andy Pan
- Katrina Chan
- Hsu Karinsu