Basic Authentication for Application RESTful Services

When calling the API, a producer user must authenticate themselves. Authentication information (in Base64) must be included in the header. The following procedure explains how to provide credentials, including an example for each step.

To provide credentials

1. Concatenate the user name and password with a single colon.

Example: If the user name is "alice" and the password is "password", the resulting concatenated string would be alice:password

2. Base64 encode the concatenated user name and password.

Example: Base64 encode the string alice:password to obtain "YWxpY2U6cGFzc3dvcmQ="

3. Add the "Authorization" key to the header of the request, with the Base64-encoded result as the value.

Example: Add the value "Basic YWxpY2UucGFzc3dvcmQ=" to the Authorization header.