Authentication
Authentication must take place between the MDM and Cloudant® sample service and Cloudant, and between clients and the MDM and Cloudant sample service.
- Local environment: This mode is controlled by settings in the config_local.json file.
- Bluemix™ environment: This mode is controlled by settings in the config_bluemix.json file.
The MDM and Cloudant sample service is configured with a default authenticated user. Change these settings to protect your MDM data.
MDM and Cloudant sample service to Cloudant authentication
When the MDM and Cloudant sample service accesses the Cloudant database, it must authenticate through HTTP Basic Authentication. The user ID and password are specified in the config_cloudant.json file. As a best practice, you should provide credentials on a per-database granularity, and only for read and write access.
Client to MDM and Cloudant sample service authentication
Clients of the MDM and Cloudant sample service are authenticated through HTTP Basic Authentication, using a simplified model of one authenticated user. The ID and password of this user are specified in the authenticated_user.json file.