Authorizing HTTP requests by using the Zen API key
When you want a user agent to send authentication credentials to the Cloud Pak Platform UI (Zen) front door, it can use the Authorization header field.
About this task
To integrate your CP4BA deployment with, for example, an identity provider or call a REST API
from a client application, you can use the Zen API key. To call a REST API, you need a token that is
sent by the Zen API key. The string <username>:<api key>
must be base64 encoded and then added to the Authorization header of the request.
The encoded value must be prefixed with the identifier ZenApiKey, which specifies
the Zen’s proprietary authentication scheme.
You can make a request to a Cloud Pak REST API by using a cURL command or a thin client (fat client). The following steps show how to encode the value of the Zen token in the Authorization header.