TheLoons / SportIM-service

Backend Webservice for SportIM
GNU General Public License v2.0
1 stars 0 forks source link

Create APIUtils calls for creating and parsing authentication tokens and add Login API #11

Closed hjbrock closed 9 years ago

hjbrock commented 9 years ago

Create the utilities for creating and reading authentication tokens. Integrating these into the calls will be done in separate tickets.

hjbrock commented 9 years ago

Created #21 for integrating authentication into existing calls. The authentication utils are up and running. Login can be accomplished by using the call:

POST http://sportim.heroku.com/rest/login

with a JSON body of: { "login":, "password": }

A token will be returned in the response:

{ "status": { "code":200, "message":"" }, "token": }

ONLY USE THIS WITH AN SSL ENABLED ENDPOINT.

hjbrock commented 9 years ago

Users can be registered by POSTing a structure like the following to /rest/user

{ "login":"email here", "firstName":"first name", "lastName":"last name", "phone":"phone number", "password":"pwd" }