noisebridge / rfid-access-control

Little system to handle RFID access control at Noisebridge
GNU General Public License v2.0
48 stars 19 forks source link

Web Admin Interface #24

Open patrickod opened 7 years ago

patrickod commented 7 years ago

We're adding Philanthropists at a reasonable rate these days and it'd be great to have an easier way to edit their status with a browser as opposed to SSH'ing into earl and editing the text file.

On top of this it'd be great if Earl posted into the #rack Slack channel to notify people that their status has been updated.

patrickod commented 7 years ago

Ideally the authentication layer here would be some form of OAuth (maybe using Github) so that we don't have to store credentials. This should be a relatively easy thing to extend. I'll explore doing so.

hzeller commented 7 years ago

This is has first been discussed in #13 There, we were discussing using the RFID as authentication, but it has the disadvantage that you need to be in the space. So I do like the OAuth idea. It would make many things even simpler.

griffin2000 commented 7 years ago

I can take a look at this. Is the format of the text file the web interface would need to read/write somewhere?

hzeller commented 7 years ago

There is an API to change it, which is what you should use.

griffin2000 commented 7 years ago

Where is that API defined?

hzeller commented 7 years ago

It is the Authenticator class: https://github.com/noisebridge/rfid-access-control/blob/master/software/earl/authenticator.go#L42

There are two ways to solve this