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 Antwort
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
beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen