grounded042 / capacious

event guest management made easy
0 stars 0 forks source link

auth #7

Open grounded042 opened 8 years ago

grounded042 commented 8 years ago

For the admin panel, we need authentication. This will be handled via JWT. To incorporate this, we will need several endpoints with corresponding logic and SQL tables.

grounded042 commented 8 years ago

to "opt into" auth, a handler will have to handle this. The middleware for auth will check for a token and if a token is present, validate it. If the token is valid, the user id will be added to the context as UserId. The handler/controller will then have to check for the existence of UserId and can act accordingly.