Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Token Credentials to upload to blob #282

Open
r77o opened this issue Sep 3, 2024 · 1 comment
Open

Use Token Credentials to upload to blob #282

r77o opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@r77o
Copy link

r77o commented Sep 3, 2024

I was going the the implementation in the example for blob storage : https://github.com/quarkiverse/quarkus-azure-services/tree/main/extensions/azure-storage-blob/deployment

Here connection-string is being used probably with a sas token. However, i can't use the sas token as it will give me access to all the containers. i have a specific container where I want to upload the files.

I have use the TokenCredentials that are generated using TenantID, Client and Client Secret for authorization.

Is there a way that I can use TokenCredentials to access the container?

@majguo majguo self-assigned this Nov 15, 2024
@majguo
Copy link
Contributor

majguo commented Nov 15, 2024

Hello @r77o, it's a good question. As for now, connection-string is the only way to access the azure storage blob with extension azure-storage-blob. We're planning to enhance the extension to support managed identity based authentication/authorization (see this doc as an example, but using the enhanced quarkus extension), which seems address your requirement. We probably start working in Dec 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants