预令牌生成触发时无法识别的lambda输出Cognito

时间:2020-03-12 12:10:05

标签: node.js aws-lambda amazon-cognito

我正在使用预令牌生成触发器将自定义声明插入我的令牌。声明之一是列表:

exports.handler = (event, context, callback) => {
event.response = {
    "claimsOverrideDetails": {
        "claimsToAddOrOverride": {
            "subscription_name": "FLEXI",
            "subscriptions" : {
                "id": "Wakanda",
                "country": "Namibia"
            }
        },
        "claimsToSuppress": ["token_use"]
    }
};


callback(null, event);

}

我在做什么错了?

0 个答案:

没有答案