简体   繁体   English

Kinesis Stream 认证

[英]Kinesis Stream Authentication

I have a mobile app with custom authentication that issues a JWT token which does not utilize Cognito at this point.我有一个带有自定义身份验证的移动应用程序,它发出一个 JWT 令牌,此时不使用 Cognito。 I would like to stream location data from the app after the user authenticates to a Kinesis data stream.在用户对 Kinesis 数据 stream 进行身份验证后,我想从应用程序获取 stream 位置数据。

How do I protect the Kinesis data stream to only allow data sent from my authenticated users?如何保护 Kinesis 数据 stream 以仅允许从我的经过身份验证的用户发送数据? I've read that I can create a Cognito Identity Pool with unauthenticated users, but that would allow anyone to obtain a token from Cognito I'm assuming?我读过我可以使用未经身份验证的用户创建一个 Cognito 身份池,但是我假设这将允许任何人从 Cognito 获取令牌? How do only allow authenticated users of my app to send data to the Kinesis stream?如何只允许我的应用程序的经过身份验证的用户将数据发送到 Kinesis stream?

We can create a REST Api with AWS API Gateway which proxies requests to Kinesis directly.我们可以使用 AWS API 网关创建一个 REST Api 网关,它直接将请求代理到 Kinesis。 Here is a tutorial 是一个教程

Cognito can serve as authentication server and give you token with necessary permissions to write to Kinesis. Cognito 可以充当身份验证服务器,并为您提供具有写入 Kinesis 所需权限的令牌。 But if your mobile application is already secured by custom authentication server and receiving a JWT, I think it's better to use Custom Authorizer, which validates your JWT against your auth server, to secure Api Gateway instead of Cognito.但是,如果您的移动应用程序已经受到自定义身份验证服务器的保护并收到 JWT,我认为最好使用自定义授权器,它根据您的身份验证服务器验证您的 JWT,以保护 Api 网关而不是 Cognito。

Tutorial on custom Authorizer lambda function 自定义授权器教程 lambda function

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Kinesis 输入流到 Logstash - Kinesis input stream into Logstash Kinesis Firehose Stream 空 - Kinesis Firehose Stream Empty 如何将 DynamoDB stream 连接到 kinesis stream? - How to wire a DynamoDB stream to a kinesis stream? 从运动流中读取数据失败 - Reading data from kinesis stream unsuccessfully Kinesis Stream 和 DynamoDB 流之间的区别 - Difference between Kinesis Stream and DynamoDB streams 如何在不通过 Kinesis Data 的情况下直接将 KPL(Kinesis Producer Library)集成到 Kinesis firehose Stream - How to integrate KPL (Kinesis Producer Library) to Kinesis firehose directly without going through Kinesis Data Stream gstreamer 到 Kinesis Video Stream 速率限制 - gstreamer to Kinesis Video Stream rate limiting 使用来自 Kinesis Data Stream 源的 Kinesis Firehose Delivery Stream 将数据写入 S3 时出现问题 - Problem writing data to S3 with Kinesis Firehose Delivery Stream from Kinesis Data Stream source 从数据 stream (Kinesis) 到 OpenSearch AWS 创建交付 stream (Firehose) - Create delivery stream (Firehose) from data stream (Kinesis) to OpenSearch AWS 无法使用spring cloud kinesis stream启动spring boot - Unable to start spring boot with spring cloud kinesis stream
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM