Ensure you have:
- A comfortable level of knowledge of the following interfaces and technologies (or access to developers as needed):
- Sufficient permissions to create, edit, and publish Lambda functions and modify API endpoints.
- The Amazon API Gateway integration kit downloadable
.zip
archive. Download the integration kit from the Ping Identity Integration Directory.
In this example, you are configuring a request parameter-based Lambda authorizer and integrating this authorizer with PingOne Authorize and a backend REST API.
The Amazon API Gateway works with Lambda authorizer to manage access to your API resources. When a client makes a request to the backend API, Amazon API Gateway calls the configured Lambda authorizer to create a sideband request for the runtime authorization service. Lambda authorizer then translates the policy response into an IAM policy document for Amazon API Gateway to use in enforcement. If access is permitted, the gateway executes the backend endpoint; if access is denied, the gateway returns a suitable status code and a reason for the denial to the client.
Amazon API Gateway provides PingOne Authorize with
client API request metadata, such as header
and
method
, that you can use in writing policies.
The Lambda authorizer has the following limitations:
- Amazon API Gateway does not expose the request body to PingOne Authorize. This prevents PingOne Authorize from modifying parts of the client
request before Amazon API Gateway sends the request to the backend API. For
example, although
set-headers
andset-query
statements will execute successfully, their results are not forwarded to the backend API. - Amazon API Gateway does not send any part of the backend API response to PingOne Authorize.
To upload the integration kit in AWS and configure it to integrate with PingOne Authorize:
Define API services to represent your APIs so that PingOne Authorize can help your API gateway enforce access control. For more information, see Defining your API in PingOne Authorize.
You can only define API services configured with PingOne SSO to integrate with Lambda authorizer.