I want to protect my AWS API Gateway with Okta. The APIs should respond only if the request contain Okta access token in the header (Authorization). We cannot use IAM authorization for this. So, I planned to use one of the following Authorizer Types:
- Lambda
- Cognito (I checked this link and I understood we can use Okta as an IdentityProvider in Cognito User Pool)
Please confirm which of the following will be correct:
- We can use only Lambda and not Cognito in this case
- We can use only Cognito and not Lambda in this case
- We can use either Lambda or Cognito in this case