如果我已经拥有 aws-sdk (javascript),还需要 amazon-cognito-identity-js 吗?
Do I need amazon-cognito-identity-js if I already have the aws-sdk (javascript)?
我有一个使用 aws-sdk 的 javascript 项目。不,我想使用 amazon-cognito-identity-js。页面上写着:
Note that the Amazon Cognito AWS SDK for JavaScript is just a slimmed down version
of the AWS Javascript SDK namespaced as AWSCognito instead of AWS. It
references only the Amazon Cognito Identity service.
事实上,我可以创建 CognitoIdentityServiceProvider:
CognitoIdentityServiceProvider = new AWS.CognitoIdentityServiceProvider();
但我认为如何验证用户身份?根据 amazon-cognito-identity-js 文档:
authenticationDetails = new CognitoIdentityServiceProvider.AuthenticationDetails({Userame: ..., Password: ...});
cognitoUser.authenticateUser(authenticationDetails, ...)
但是 CognitoIdentityServiceProvider 对象没有 AuthenticationDetails 属性。
当我使用 aws-sdk 而不是 amazon-cognito-identity-js 时,是否需要做一些不同的事情?
或者我的假设是错误的,我需要 aws-sdk 和 amazon-cognito-identity-js?
不,你不知道。您可以像这样使用 aws-sdk 登录:
const cognito = new aws.CognitoIdentityServiceProvider({ region });
cognito.adminInitiateAuth({
AuthFlow: 'ADMIN_NO_SRP_AUTH',
ClientId: clientId,
UserPoolId: poolId,
AuthParameters: {
USERNAME: email,
PASSWORD: password,
},
});
用户名密码认证需要ADMIN_NO_SRP_AUTH。
我还添加了处理错误和成功的功能。有关数据中发送的响应和令牌的更多详细信息,您可以查看参考资料。
const cognito = new AWS.CognitoIdentityServiceProvider();
cognito.adminInitiateAuth({
AuthFlow: 'ADMIN_NO_SRP_AUTH',
ClientId: 'clientId',
UserPoolId: 'poolId'
AuthParameters: {
USERNAME: 'userName',
PASSWORD: 'password',
},
}, function(err, data) {
if (err) {
console.log(err, err.stack);
}
else {
console.log(data);
}
});
对于未来的任何人
以下是我使用
注册和登录的方法
private cognito = new AWS.CognitoIdentityServiceProvider();
注册:
public async register(event) {
try {
if(!this.validator.isObjectNotEmpty(event.body)){
throw new Error("you have to include body to insert into DB !!");
}
const usermodel = event.body;
if (this.validator.isEmailNotValid(usermodel)) {
throw new Error("Not Valid username or password");
}
const email = usermodel.email.toLowerCase();
const password = usermodel.password;
const createUserParams = {
UserPoolId: Cognito_User_Pool, // From Cognito dashboard 'Pool Id'
Username: email,
MessageAction: "SUPPRESS", // Do not send welcome email
TemporaryPassword: password,
};
const user = await this.cognito.adminCreateUser(createUserParams).promise();
this.logger.info("created user: ",user);
const initiateAuthParams = {
AuthFlow: "ADMIN_USER_PASSWORD_AUTH",
ClientId: Cognito_User_Pool_Client,
UserPoolId: Cognito_User_Pool,
AuthParameters: {
USERNAME: email,
PASSWORD: password
}
};
const challengesResponse = await this.cognito.adminInitiateAuth(initiateAuthParams).promise();
this.logger.info("challengesResponse: ",challengesResponse);
const userPasswordParams = {
Password: password,
UserPoolId: Cognito_User_Pool,
Username: email,
Permanent: true
};
return this.cognito.adminSetUserPassword(userPasswordParams).promise();
} catch (error) {
console.log("error: ", error);
throw error;
}
}
登录
public async login(event) {
try {
this.logger.info("login - event: ",JSON.stringify(event));
this.logger.info("register - Cognito_User_Pool: ",Cognito_User_Pool);
this.logger.info("register - Cognito_User_Pool_Client: ",Cognito_User_Pool_Client);
if(!this.validator.isObjectNotEmpty(event.body)){
throw new Error("you have to include body to insert into DB !!");
}
const usermodel = event.body;
if (this.validator.isEmailNotValid(usermodel)) {
throw new Error("Not Valid username or password");
}
const email = usermodel.email.toLowerCase();
const password = usermodel.password;
const initiateAuthParams = {
AuthFlow: "ADMIN_USER_PASSWORD_AUTH",
ClientId: Cognito_User_Pool_Client,
UserPoolId: Cognito_User_Pool,
AuthParameters: {
USERNAME: email,
PASSWORD: password
}
};
return await this.cognito.adminInitiateAuth(initiateAuthParams).promise();
} catch (error) {
console.log("error: ", error);
throw error;
}
}
登录函数return响应如下:
"tokenObj": {
"ChallengeParameters": {},
"AuthenticationResult": {
"AccessToken": "eyJraWQiOiI1ZFN5R0tEUFE2WnhTbzJ4N01QTXpxaVRPNXZoK3p5NkJaOFZhRzV1M0Z3P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0NTY3LCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAudXMtd2VzdC0yLmFtYXpvbmF3cy5jb21cL3VzLXdlc3QtMl9vVmFnb3hFd0wiLCJjb2duaXRvOnVzZXJuYW1lIjoiZWJjN2M4YzctZjllYS00MTMxLTgxNDQtNjdkM2ZmYzg1ZTdlIiwiZXhwIjoxNjM4MTI0ODY3LCJpYXQiOjE2MzgxMjQ1NjcsImp0aSI6ImRmMzVlZWQ1LWZjNGItNDBlZS1hYWEwLTYxNTViZWNiNjIyNyIsImVtYWlsIjoidGVzdDJAdGVzdC5jb20ifQ.L9nNSlcQakRfVpAo-bf9jnXFrhov8iD9j3R2UI7x5eUT42OBrvSdEk3Y2JtFKQt1FpxBFLqtWCRyY0Wxlcq3MzZE04zIFBC02WmV24vF1QS9TxpBYAm8NkyNoW-7Lqe7CIWhK_DHMxSRpzo87txmwpID6xwd9JOlZG04L76hkXr0_2JgM2KuvB0lKL0v4heHK8e2ht_VuKBPNpVvMIbIA2xN22LRhivfG8EMeHmF3jhhQYggi1Pczb2WEviPUqebmLhdvjJpHC9OMVhvN4GMcr0JVv-GepxSCrNSFoXPDNZaznJbDJW0Zt3xY9bWek_l62v1Wm0a1h7V7nxw8a0Csw"
}
}
}
我有一个使用 aws-sdk 的 javascript 项目。不,我想使用 amazon-cognito-identity-js。页面上写着:
Note that the Amazon Cognito AWS SDK for JavaScript is just a slimmed down version of the AWS Javascript SDK namespaced as AWSCognito instead of AWS. It references only the Amazon Cognito Identity service.
事实上,我可以创建 CognitoIdentityServiceProvider:
CognitoIdentityServiceProvider = new AWS.CognitoIdentityServiceProvider();
但我认为如何验证用户身份?根据 amazon-cognito-identity-js 文档:
authenticationDetails = new CognitoIdentityServiceProvider.AuthenticationDetails({Userame: ..., Password: ...});
cognitoUser.authenticateUser(authenticationDetails, ...)
但是 CognitoIdentityServiceProvider 对象没有 AuthenticationDetails 属性。
当我使用 aws-sdk 而不是 amazon-cognito-identity-js 时,是否需要做一些不同的事情?
或者我的假设是错误的,我需要 aws-sdk 和 amazon-cognito-identity-js?
不,你不知道。您可以像这样使用 aws-sdk 登录:
const cognito = new aws.CognitoIdentityServiceProvider({ region });
cognito.adminInitiateAuth({
AuthFlow: 'ADMIN_NO_SRP_AUTH',
ClientId: clientId,
UserPoolId: poolId,
AuthParameters: {
USERNAME: email,
PASSWORD: password,
},
});
用户名密码认证需要ADMIN_NO_SRP_AUTH。 我还添加了处理错误和成功的功能。有关数据中发送的响应和令牌的更多详细信息,您可以查看参考资料。
const cognito = new AWS.CognitoIdentityServiceProvider();
cognito.adminInitiateAuth({
AuthFlow: 'ADMIN_NO_SRP_AUTH',
ClientId: 'clientId',
UserPoolId: 'poolId'
AuthParameters: {
USERNAME: 'userName',
PASSWORD: 'password',
},
}, function(err, data) {
if (err) {
console.log(err, err.stack);
}
else {
console.log(data);
}
});
对于未来的任何人
以下是我使用
注册和登录的方法 private cognito = new AWS.CognitoIdentityServiceProvider();
注册:
public async register(event) { try { if(!this.validator.isObjectNotEmpty(event.body)){ throw new Error("you have to include body to insert into DB !!"); } const usermodel = event.body; if (this.validator.isEmailNotValid(usermodel)) { throw new Error("Not Valid username or password"); } const email = usermodel.email.toLowerCase(); const password = usermodel.password; const createUserParams = { UserPoolId: Cognito_User_Pool, // From Cognito dashboard 'Pool Id' Username: email, MessageAction: "SUPPRESS", // Do not send welcome email TemporaryPassword: password, }; const user = await this.cognito.adminCreateUser(createUserParams).promise(); this.logger.info("created user: ",user); const initiateAuthParams = { AuthFlow: "ADMIN_USER_PASSWORD_AUTH", ClientId: Cognito_User_Pool_Client, UserPoolId: Cognito_User_Pool, AuthParameters: { USERNAME: email, PASSWORD: password } }; const challengesResponse = await this.cognito.adminInitiateAuth(initiateAuthParams).promise(); this.logger.info("challengesResponse: ",challengesResponse); const userPasswordParams = { Password: password, UserPoolId: Cognito_User_Pool, Username: email, Permanent: true }; return this.cognito.adminSetUserPassword(userPasswordParams).promise(); } catch (error) { console.log("error: ", error); throw error; } }
登录
public async login(event) { try { this.logger.info("login - event: ",JSON.stringify(event)); this.logger.info("register - Cognito_User_Pool: ",Cognito_User_Pool); this.logger.info("register - Cognito_User_Pool_Client: ",Cognito_User_Pool_Client); if(!this.validator.isObjectNotEmpty(event.body)){ throw new Error("you have to include body to insert into DB !!"); } const usermodel = event.body; if (this.validator.isEmailNotValid(usermodel)) { throw new Error("Not Valid username or password"); } const email = usermodel.email.toLowerCase(); const password = usermodel.password; const initiateAuthParams = { AuthFlow: "ADMIN_USER_PASSWORD_AUTH", ClientId: Cognito_User_Pool_Client, UserPoolId: Cognito_User_Pool, AuthParameters: { USERNAME: email, PASSWORD: password } }; return await this.cognito.adminInitiateAuth(initiateAuthParams).promise(); } catch (error) { console.log("error: ", error); throw error; } }
登录函数return响应如下:
"tokenObj": {
"ChallengeParameters": {},
"AuthenticationResult": {
"AccessToken": "eyJraWQiOiI1ZFN5R0tEUFE2WnhTbzJ4N01QTXpxaVRPNXZoK3p5NkJaOFZhRzV1M0Z3PSIsImFsZyI6IlJTMjU2In0.eyJvcmlnaW5fanRpIjoiMGYzY2RmZTItZTM3Zi00NGRiLWJiMWQtMDIzYjFiZTdlZGVjIiwic3ViIjoiZWJjN2M4YzctZjllYS00MTMxLTgxNDQtNjdkM2ZmYzg1ZTdlIiwiZXZlbnRfaWQiOiJhYWJhNzgyZi1iZTVhLTQxMjItYjljYS0yNjg5NTY2ZDVkMTgiLCJ0b2tlbl91c2UiOiJhY2Nlc3MiLCJzY29wZSI6ImF3cy5jb2duaXRvLnNpZ25pbi51c2VyLmFkbWluIiwiYXV0aF90aW1lIjoxNjM4MTI0NTY3LCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAudXMtd2VzdC0yLmFtYXpvbmF3cy5jb21cL3VzLXdlc3QtMl9vVmFnb3hFd0wiLCJleHAiOjE2MzgxMjgxNjcsImlhdCI6MTYzODEyNDU2NywianRpIjoiZjE0MTBjMGEtOWM4ZS00YjMzLWJkMjEtNmQ1ZDIwYz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