In the last section, we learned how to add plugins to Kong Enterprise.
In this section, we’re going to learn how to add Consumers to
Kong. Consumers are associated to individuals or applications using your
API. As an entity, they can be used for tracking, access management, and more.
The authorization header must be base64 encoded. For example, if the credential
uses Aladdin as the username and OpenSesame as the password, then the field’s
value is the base64-encoding of Aladdin:OpenSesame, or QWxhZGRpbjpPcGVuU2VzYW1l.
Then the Authorization (or Proxy-Authorization) header must appear as:
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
To verify our new Consumer has access, make a request with the header: