7 Commits

Author SHA1 Message Date
Jonathan Bernard
207e86de81 Fixed missing permissions on mutable Song REST resources. 2015-03-23 04:10:01 -05:00
Jonathan Bernard
e13bf171b1 Added user login endpoint. 2015-03-07 14:18:05 -06:00
Jonathan Bernard
4f247cba37 Fixed bug in buildToken and buildUser. 2015-03-03 16:29:15 -06:00
Jonathan Bernard
43ba9216e5 Further API implmentation. 2015-03-02 21:26:06 -06:00
Jonathan Bernard
dc5cb78320 Added support for cross-origin requests (CORS). 2015-03-02 21:24:58 -06:00
Jonathan Bernard
83a0f7275c Implemented token-based API authentication.
Replaced the ApiKey concept with ephemeral tokens. Users and apps obtain a
token by authenticating the user credentials (to be implemented). The service
then generates a temporary token that is stored by the client and sent with
every request using the `Authorization-Token` header. The server verifies this
token to recognize and authenticate the request. With an authenticated user,
the server can use the user's role to authorize requests.

This implementation uses JSR 250 SecurityContext and security annotations.
2015-03-02 21:20:25 -06:00
Jonathan Bernard
37208fa381 Added web deployment description, context configuration, service, and song endpoint implementations. 2015-02-20 17:28:42 -06:00