Cognito oAuth with AWS SDK

0

Hi

I'm trying to implement a .Net website that uses Cognito to access S3 and DynamoDB resources securely using oAuth2. I've raised a question on Stack Exchange but they have not been able to answer my query: https://stackoverflow.com/questions/74643160/accessing-aws-resources-securely-using-the-aws-sdk-for-net

All examples I have found do two things: authenticate a Cognito userpool user and access resources using an IAM account. This is not how I understand oAuth should work, which is: authenticate a Cognito user -> get the Identity Pool ID token -> Use the token to access S3/DynamoDB.

I've done this successfully using JS and found an example here: https://hobbyistcoder.com/2015/05/25/character-creator-with-amazon-dynamodb-integration-in-unity3d/ which does it in an obsolete SDK, but there doesn't appear to be any equivalent to the CognitoAWSCredentials in v 3 of the SDK, so I'm stuck.

已提問 1 年前檢視次數 292 次
1 個回答
0

Nick, I can't offer you any specific answers but I do share your pain when it comes to using Cognito and .NET - I have found examples and documentation less than ideal.

I am going to have to face this challenge again for a personal project in the next few weeks so fingers crossed I'll have better outcomes this time.

The best points of reference I have found are :

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南