mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(cloudformation): forward ProviderARNs on AWS::ApiGateway::Authorizer (#4704)
The REST API Gateway provisioner never read ProviderARNs, so a COGNITO_USER_POOLS authorizer was created with no user pool and CognitoUserPoolAuthorizer rejected every token with 401 before inspecting it. Resolve the list like the other list-shaped properties and forward it as providerARNs, which createAuthorizer already accepts.
This commit is contained in:
1 parent
9c3593f4d1
commit
b5f053c587
2 files changed
+28
No files matched your search
+3
@@ -513,6 +513,9 @@ public class ApiGatewayRestApiCfnProvisioner implements CfnResourceProvisioner {
|
||||
if (ttl != null) {
|
||||
req.put("authorizerResultTtlInSeconds", ttl);
|
||||
}
|
||||
if (props != null && props.has("ProviderARNs")) {
|
||||
req.put("providerARNs", ctx.resolveStringList(props, "ProviderARNs"));
|
||||
}
|
||||
Authorizer authorizer = apiGatewayService.createAuthorizer(ctx.region(), apiId, req);
|
||||
r.setPhysicalId(authorizer.getId());
|
||||
r.getAttributes().put("AuthorizerId", authorizer.getId());
|
||||
|
||||
Reference in new issue
Block a user