authentication - GeoSmartCity-CIP/crowd-sourcing GitHub Wiki

#Authentication

Different pilots require different approach to user authentication and authorization. While some pilots allow annonymous users, other require authentication.

Request URL: login

Request body example

{
   "user": {
      "id": "mole",
      "password": "molehill"
   }
}

Response body example

{
   "id": "mole",
   "email": "[email protected]",
   "organization": "Earth Moving",
   "role": ["admin]"
}

Database configuration

Value login-required stored in table property decides if authentication is required. Note that default value is false, i.e. if the property isn't provided the authentiacation isn't required.