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 Resposta
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
respondido há 7 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas