我正在尝试创建一个堆栈,它将创建一个带有App和Identity Pool的用户池。这是堆栈:
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters" : {
"CognitoUserPoolName": {
"Description": "Name of the Cognito user pool as a parameter passed into this template."
即使我有相同版本的cdk依赖项,我也很难弄清楚这里的问题是什么。const identityPool = new cognito.CfnIdentityPool(this, "IdentityPool", {
Argument of type 'this' is not assignable to parameter of type 'Construct'.
Type 'MyStack' is not assignable to type 'Construct'.
Types of property &
这是我的剧本,
import * as cdk from '@aws-cdk/core';
import * as codecommit from "@aws-cdk/aws-codecommit";
import * as amplify from "@aws-cdk/aws-amplify";
import * as cognito from "@aws-cdk/aws-cognito";
import * as iam from "@aws-cdk/aws-iam";
export class Cdkdep
我正在使用Serverless框架来处理我的CloudFormation内容。我正在用有自己角色的组构建一个用户池。我希望构建我的身份池,以便将Authenticated role selection的Choose role from token提供程序设置设置为带有Role resolultion of DENY的Role resolultion。
这是我的相关CloudFormation --忽略${self:custom....}的内容:
IdentityPool:
Type: AWS::Cognito::IdentityPool
Properties:
我使用Firebase作为我的服务器和客户端,它使用基于令牌的身份验证。我只有移动客户端,所以基本上没有用户会话需要在服务器上管理,客户端需要在每个api请求中发送一个IdToken。
根据此请求:
我是否可以创建一个全局变量或单例来将此标记存储在内存中,以便稍后在堆栈中使用?(而不是在堆栈中到处传递这个idtoken )
var sess;
app.get('/',function(req,res){
sess=req.session; // it has 'auth_token' param in it.
});
我们被微软放弃Silverlight和专注于UWP所捕获。这最终导致我们不得不开发两个双聚焦应用程序(UWP和Silverlight),这给我们留下了两个不能捆绑/打包的应用程序。因此,我们决定将这些应用程序作为配套应用程序。
这两个应用程序都使用身份验证,目前使用的是Microsoft身份验证。用于身份验证的服务类型为Azure App Service - Mobile。除了身份验证之外,这些服务还提供到通知中心、blob存储和SQL存储的接口。
因此,问题是是否有可能拥有一个App Service - Mobile (而不是移动服务),并使用相同的服务对两个不同的应用进行身份验证?另外,是
我正在寻找关于如何扩展我们现有的Cognito身份验证过程的文档,以包括其他“启用的身份提供者”。
目前我们做了以下工作
var userPool = new CognitoUserPool(poolId, clientId, provider); var user = new CognitoUser(username, clientId, userPool, provider); var context = await user.StartWithSrpAuthAsync(new InitiateSrpAuthRequest { Password = string.IsNullOrEmpty