且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

AWS Cognito:向JWT访问令牌添加自定义声明/属性

更新时间:2022-12-11 15:37:06

自定义属性在Cognito访问令牌中不可用.当前无法使用预生成令牌Lambda触发器.PreToken Generation Lambda Trigger允许您仅自定义身份令牌(Id令牌)声明.

Custom attributes are not available in Cognito access token. Currently it is not possible to inject additional claims in Access Token using Pre Token Generation Lambda Trigger as well. PreToken Generation Lambda Trigger allows you to customize identity token(Id Token) claims only.