Bma
03/28/2021, 6:31 PMBma
03/28/2021, 6:33 PMevent.requestContext.authorizer
authorizer: {
iam: {
accessKey: 'xx',
accountId: 'xxx',
callerId: 'xx:CognitoIdentityCredentials',
cognitoIdentity: [xx],
principalOrgId: 'aws:PrincipalOrgID',
userArn: 'arn:aws:sts:xxxassumed-role/xxx',
userId:' xxx'
}
},
Bma
03/28/2021, 6:34 PMuserId
, but don’t know if I can use it as unique reference of my user.Bma
03/28/2021, 6:51 PMFrank
cognitoIdentity.identityId
as user id. What does the userId
field look like?Bma
03/29/2021, 6:27 AMAROAUSNGTDVHSN65TVIM4:CognitoIdentityCredentials
Bma
03/29/2021, 9:44 AMuserId
is not unique, my bad.
I’ve two options:
Identity Pool User Id or User Pool User Id
1. For Identity Pool User Id is simple because this one is provided on the request context.
2. For User Pool User Id is less trivial because, even though this one is provided too, I have to parse it.Bma
03/29/2021, 9:44 AMFrank