English 中文(简体)
授权负责人是否转而由Cgnito 授权人行使职能?
原标题:Is the Authorization header passed to lambda function by Cognito Authorizer?

我计划把一些授权逻辑添加到我的网页上。 用户得到管理和安放;由哥尼托认证,而APIC由Lambda与APIC网关共同行使职能。 目前,Cgnito只是验证用户OAuth象征性,并允许/证明申请。 我愿进一步限制用户在我的拉姆布达职能范围内采取什么行动,审视用户群体。

看看奥阿斯特角,有关这些团体的申诉就属于象征性机构。 我的问题是,Cgnito 批准人是否通过<代码>的价值。 授权: 履历: 我可以这样做。

const groups = getGroupsFromToken(event.headers.Authorization);
if (groups.includes( some group )) {
  // let user do the thing
}
else {
  callback({ statusCode: 401, body:  You can t do the thing  });
}
最佳回答

这无疑通过头盔向我发来,也通过<条码>查询案文。 这对你可能更有用。

旧的pi门,我总是把头顶上“阿hor化”,而不管实际头盔使用什么。 较新的机构总是将其降低为“授权”。

我建议:

const groups = getGroupsFromToken(event.headers.Authorization || event.headers.authorization);

我正在利用Mlambda代理一体化(新APICGW UI正在叫Mlambda融合2.0),从你看来,你也利用了这一联系。 如果你正在使用旧的“lam子”整合(在新的“UI”),那么你需要一个绘图模板。

问题回答

暂无回答




相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签