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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则