We are trying to expose a REST service through the API Gateway so the client can consume it. We have a customer requirement that the Gateway should authenticate the request before passing the call to backend. They have asked for API key-based authentication in CA API Gateway. How we can implement API key-based authentication in CA API Gateway.
API Gateway
To create clients (users) with an API key, you can do the following:
As an admin, you can view the client's (user's) key and secret key.
Use the attached sample policy to validate the API key. This policy works based on the following assumptions:
The response shows the user's name and a status message OK, if the API key can be authenticated. Otherwise, it will throw an error. You can customize the error response as you see fit.