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

[FEATURE REQUEST] Equivalent to StorageCredentials.IsSAS in Storage v12 #12891

Closed
SeanFeldman opened this issue Jun 19, 2020 · 10 comments
Closed
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request This issue requires a new behavior in the product in order be resolved. Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Milestone

Comments

@SeanFeldman
Copy link
Contributor

SeanFeldman commented Jun 19, 2020

Query/Question

I'm looking for an equivalent to Storage v11 in v12.

With v12, when creating a BlobContainerClient, I can pass in either a StorageSharedKeyCredentials, a connection/SAS string, or a TokenCredential.

In v11, when passing a connection/SAS and constructing a StorageCredentials object, there was an IsSAS property that could differentiate between a connection string and a SAS string. With v12 it seems as this option was lost and the code has to explicitly distinguish between a connection string vs SAS Uri. Also, there's no way to

Environment:

  • Name and version of the Library package used: [e.g. Azure.Storage.Blobs 12.2.0]
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): [e.g. Azure AppService or Windows 10 .NET Framework 4.8]
  • IDE and version : [e.g. Visual Studio 16.3]
@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 19, 2020
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) labels Jun 19, 2020
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 19, 2020
@ghost
Copy link

ghost commented Jun 19, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

@seanmcc-msft
Copy link
Member

V12 doesn't have a StorageCredentials class, we have StorageSharedKeyCredential for shared key and connection string, TokenCredential for Oauth, and no auth class for SAS, since we consider it part of the URI.

Which scenario you are running into issues with?

@seanmcc-msft seanmcc-msft self-assigned this Jun 19, 2020
@seanmcc-msft seanmcc-msft removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jun 19, 2020
@jsquire jsquire added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Jun 20, 2020
@SeanFeldman
Copy link
Contributor Author

When using a connection string, I want to be able to identify a SAS based authentication. This was done OOTB by StorageCredentials in v11.

@ghost ghost added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-author-feedback Workflow: More information is needed from author to address the issue. labels Jun 22, 2020
@seanmcc-msft
Copy link
Member

What do you mean by "identify a SAS based authentication"?

@seanmcc-msft seanmcc-msft removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jun 22, 2020
@SeanFeldman
Copy link
Contributor Author

A URI could be with or w/o a SAS token. What's the option to verify the query string of the URI is a valid SAS token with v12?

@SeanFeldman
Copy link
Contributor Author

@seanmcc-msft, some of this could be addressed by fixing #11590 which would provide an option to parse a connection string and get all the parts. I'm surprised to see connection string parsing to construct a domain object was removed in v12. All the properties/parts are still valid as the service side did not change. SAS tokens, endpoints, endpoint suffixes, etc are still the same concepts.

@amnguye amnguye added feature-request This issue requires a new behavior in the product in order be resolved. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 15, 2020
@amnguye amnguye changed the title [QUERY] Equivalent to StorageCredentials.IsSAS in Storage v12 [FEATURE REQUEST] Equivalent to StorageCredentials.IsSAS in Storage v12 Jul 15, 2020
@jsquire jsquire added this to the Backlog milestone Jul 21, 2020
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Mar 12, 2021
@ghost
Copy link

ghost commented Mar 12, 2021

Hi @SeanFeldman. Thank you, for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@ghost ghost removed the no-recent-activity There has been no recent activity on this issue. label Mar 13, 2021
@ghost
Copy link

ghost commented Mar 13, 2021

Hi @SeanFeldman. There was a mistake and this issue was unintentionally flagged as a stale pull request. The label has been removed and the issue will remain active; no action is needed on your part. Apologies for the inconvenience.

@greatvovan
Copy link

@seanmcc-msft when using Integrated Windows Authentication which of TokenCredential's descendants should I use? Cannot figure out...

AcquireTokenByIntegratedWindowsAuth() already returns a token as a property of AuthenticationResult instance. TokenCredential with its GetToken() seems redundant.

If I got the token using AcquireTokenByIntegratedWindowsAuth() I need to supply it somehow to BlobContainerClient, or alternatively I need a TokenCredential instance that would acquire a token for me.

Please suggest.

@JimSuplizio
Copy link
Member

Hi @SeanFeldman, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

@JimSuplizio JimSuplizio closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
@Azure Azure locked and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request This issue requires a new behavior in the product in order be resolved. Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

6 participants