Skip to content

Conversation

@tustvold
Copy link
Contributor

Which issue does this PR close?

Part of apache/arrow-rs-object-store#166
Part of apache/arrow-rs-object-store#169

Rationale for this change

In order to expose extension points that relate to authorization and credentials, it helps to have a standard abstraction for representing this.

What changes are included in this PR?

Are there any user-facing changes?


/// Provides credentials for use when signing requests
#[async_trait]
pub trait CredentialProvider: std::fmt::Debug + Send + Sync {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the interface that will be made public as part of #4163

@tustvold
Copy link
Contributor Author

@roeap perhaps you might be able to give this one a look, I believe you were interested in apache/arrow-rs-object-store#166

Copy link
Contributor

@roeap roeap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great.

In a follow-up I would like to look into if we can make the scopes / resources in the oAuth flows somehow configurable, without out crating too much chaos :).

client: &Client,
retry: &RetryConfig,
) -> Result<TemporaryToken<String>> {
) -> crate::Result<TemporaryToken<Arc<AzureCredential>>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
) -> crate::Result<TemporaryToken<Arc<AzureCredential>>> {
) -> crate::Result<TemporaryToken<Arc<Self::Credential>>> {

probably not worth the change, but I find this a little bit more explicit when reading the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I prefer being explicit about the type returned

@tustvold tustvold merged commit 6953561 into apache:master May 17, 2023
alamb pushed a commit to alamb/arrow-rs that referenced this pull request Mar 20, 2025
* Standardise credentials API (#4223) (#4163)

* Clippy

* Allow HTTP metadata endpoint
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

Successfully merging this pull request may close these issues.

2 participants