Configuration for AWS
When deploying the Cloud API on AWS using CloudFormation, ensure that JWT authentication is properly configured by setting the following parameters:
CloudFormation Parameters:
Set
authorizationtojwt:- This specifies that JWT authentication will be used to secure the API.
Set
jwt_verifyto1:- Enables verification of the JWT token during API requests.
Set
jwt_secret_base64to the Public Key (PEM Base64 Encoded):- Use the
jwt_signing_keypublic key obtained from Retrieve JWT Public Signing Key .
- Use the
Set
jwt_user_claimtoupnoremail:- Choose the claim used to identify the user. Typically, User Principal Name (upn) or
emailis selected based on your organization’s Entra ID configuration.
- Choose the claim used to identify the user. Typically, User Principal Name (upn) or
Obtain the API Gateway Endpoint
After deploying the Cloud API using CloudFormation, retrieve the API Gateway endpoint URL for the service:
- Navigate to the CloudFormation stack in your AWS Management Console.
- Locate the Outputs section of the deployed stack.
- Find the output parameter labeled
ApiGatewayId. - Use the
ApiGatewayIdand your AWS region to construct the endpoint URL for the Protegrity Cloud API:- Format:
https://{ApiGatewayId}.execute-api.{Region}.amazonaws.com/pty - Example: If
ApiGatewayIdisabc123xyzand the region isus-east-1, the service endpoint URL will be:
https://abc123xyz.execute-api.us-east-1.amazonaws.com/pty - Format:
- Record this endpoint URL for use in the Browser Protector configuration.
protector_endpoint_url: <>
Disable IAM Authentication for the /v1/unprotect Endpoint
By default, AWS API Gateway might enforce IAM authentication for API methods. Since authentication is already handled within the Cloud API protect Lambda function,
IAM authentication for the /v1/unprotect endpoint must be disabled.
Navigate to the API Gateway:
Open the AWS Management Console and go to the API Gateway service.Locate the API Gateway:
Find the API Gateway deployed for the Cloud API (use theApiGatewayIdobtained in Step 4).Select the
/v1/unprotectResource:
Locate the/v1/unprotectresource in the API Gateway.Choose the
POSTMethod:
Under Method Execution, select thePOSTmethod.Set Authorization to
None:
In the Method Request settings, set Authorization toNone.Save the Changes:
Confirm and save the changes.
Feedback
Was this page helpful?