bethgrace5 / sequoia-grove

Angular JS / Java Spring Web Application to Assist Employee Scheduling
http://bethgrace5.github.io/sequoia-grove/
4 stars 3 forks source link

API token - Security #56

Closed amadorjoaosilva closed 8 years ago

amadorjoaosilva commented 8 years ago
bethgrace5 commented 8 years ago

Following: http://engineering.talis.com/articles/elegant-api-auth-angular-js/ I was able to use a factory to append "Authorization" field to header, and receive the value via @RequestHeader. Next, I will follow their example on how to intercept the response to deal with token invalidation or expiry. Then, I need to figure out token creation and how to generate new ones, and verify when they are received. Finally, then make these checks with every api request.

bethgrace5 commented 8 years ago

API Token passing

User Permissions