How do you design a system that authenticates different types of users without having users logged into the system? This was one of the more challenging aspects of the project. I decided on using Access Keys with unique id's to identify and connect users to cards, pins, locations, etc. Everything is stored in Firebase as lookups.
- Access Keys
- ID
- Name
- Type (admin, user, temp)
- Location (lookup)
- Expiration Date
- Deleted
- Registered
- Enable
- Location
- ID
- Name
- Mode (used for provisioning cards)
- Pins
- ID
- Access Key (lookup)
- Location (lookup)
- PIN
- Cards
- ID
- Access Key (lookup)
- Location (lookup)
- Card Number
- Doors
- ID
- Access Key (lookup)
- Location (lookup)
- Logs
- ID
- Access Key (lookup)
- Location (lookup)
- PIN or Card or Door
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.