Accessing an S3 Bucket in Java Spring Boot Using a Cognito User Token

0

Hello, I am developing a Java Spring Boot application and I'm looking to carry out AWS S3 operations, such as reading objects, uploading files, and creating folders within a bucket. Is it feasible to perform these operations using a Cognito user JWT token? Your assistance would be greatly appreciated. Thank you.

1 個回答
0

You'd need to use the Cognito Identity Pool. An Amazon Cognito identity pool is a directory of federated identities that you can exchange for AWS credentials. Amazon Cognito identities are exchanged for credentials using web identity federation support in the AWS Security Token Service (AWS STS). The recommended way to obtain AWS credentials for your app users is to use AWS.CognitoIdentityCredentials. The identity in the credentials object is then exchanged for credentials using AWS STS.

See the blog post series: https://aws.amazon.com/blogs/mobile/understanding-amazon-cognito-authentication-part-3-roles-and-policies/

AWS
已回答 7 個月前

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

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

回答問題指南