同一AWS Cognito用户池中的多个应用程序,同一用户的cognitoID是否相同? [英] Multiple Apps in the same AWS Cognito user pool would the cognitoID be the same for same user?

查看:75
本文介绍了同一AWS Cognito用户池中的多个应用程序,同一用户的cognitoID是否相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Cognito用户池,可以很好地与我的iOS和Android应用程序配合使用.该池具有客户端密钥.我现在想建立Web的身份验证.用于cognito的javascript sdk不支持使用应用程序客户端密钥配置的用户池.

I have a Cognito user pool that works fine with my iOS and Android apps. This pool has a client secret key. I now want to build authentication for web. The javascript sdk for cognito doesn't have support for user pools configured with app client secret.

因此,可以说我在同一池中创建了一个新应用程序(没有客户端机密),专门用于该Web应用程序.当前属于池中App A一部分的移动用户能否通过App B(我将为Web配置的那个)登录Cognito?

So lets say I create a new app (without client secret) in the same pool to be used specifically for the web app. Would my mobile users who are currently part of App A in the pool, be able to log into Cognito via App B (the one I would configure for web)?

这里推荐的什么方法允许移动用户仍然能够通过网络登录到认知模式?

What is the recommended approach here to allow mobile users to still be able to log into cognito via web?

推荐答案

是的,您可以在用户池中创建一个新的应用程序客户端,以与Web界面一起使用.用户帐户与用户池关联,而不与他们使用的客户端应用程序关联.用户帐户可以使用任何正确配置的应用程序客户端针对用户池进行身份验证. 用户池应用设置"文档注意,您通常会为每个平台创建一个不同的应用程序客户端,因此为您的Web界面创建一个不同的客户端是完全正常的.

Yes, you can create a new app client on your User Pool for use with your web interface. User accounts are associated with the User Pool, and not associated with the client apps they use. A user account can authenticate against a User Pool using any properly configured app client. The User Pool App Settings documentation notes that you'd typically create a different app client for each platform, so making a different client for your web interface is perfectly normal.

这篇关于同一AWS Cognito用户池中的多个应用程序,同一用户的cognitoID是否相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆