Optional
credentialsOptional
requiredVerifies that access token claims contain the given scope.
When defined as part of a resource server, scopes are on the format:
{resource server identifier}/{scope name}
, e.g. external/view_users
.
To get more type safety on this parameter, see the docs for the AuthScopesT
type parameter on
ApiGateway.
Name of secret in AWS Secrets Manager that stores basic auth credentials for the backend service, to be forwarded to the backend if Cognito user pool authentication succeeded.
The secret value must follow this format:
This prop solves the following use-case:
This prop solves this by letting you specify credentials to pass to the backend after API-GW authentication succeeds. You can pass the encoded credentials through AlbIntegrationProps.mapParameters, using the
authorizer.internalAuthorizationHeader
context variable, like so:The backend can then check the
X-Internal-Authorization
header.