-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Azure Blob - Using InteractiveBrowserCredential as an alternative to ClientSecretCredential -> AuthorizationPermissionMismatch #14490
Comments
Also, in your example it isn't necessary to call |
Aha, thank you very much for clarifying the principle differences! You are absolutely correct! By giving a group of users Reader and Storage Blob Data Reader roles to a specific private container I was able to access the blobs by simply using blob_service_client = BlobServiceClient(
account_url=f'https://{account_name}.blob.core.windows.net',
credential=InteractiveBrowserCredential()
) I'll close this issue now. Best Regards |
Web ant93 release: Updating API version to 2021-01-01 (Azure#14489) * Adds base for updating Microsoft.Web from version stable/2020-12-01 to version 2021-01-01 * Updates readme * Updates API version in new specs and examples * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.… (Azure#14212) * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Add custom word * Actually bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Update AppServicePlan.json with preoperty (Azure#14388) Adding ElasticScaleEnabled to ASP object! * Swagger changes for kubeenv (Azure#14417) * Swagger changes for kubeenv * Add examples for create and update * Fixing model validations in examples * Supress systemData for kubeenvironments.json * Making small change to trigger a re-run of ApiReview runner * Fixing extendedLocation bug in swagger * fix model validation * Carry over missing Acr properties from previous version (Azure#14490) * [python]Update readme.python.md (Azure#14493) * Update readme.python.md * Update readme.md Co-authored-by: jocawtho <[email protected]> Co-authored-by: JennyLawrance <[email protected]> Co-authored-by: msyyc <[email protected]>
Web ant93 release: Updating API version to 2021-01-01 (Azure#14489) * Adds base for updating Microsoft.Web from version stable/2020-12-01 to version 2021-01-01 * Updates readme * Updates API version in new specs and examples * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.… (Azure#14212) * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Add custom word * Actually bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Update AppServicePlan.json with preoperty (Azure#14388) Adding ElasticScaleEnabled to ASP object! * Swagger changes for kubeenv (Azure#14417) * Swagger changes for kubeenv * Add examples for create and update * Fixing model validations in examples * Supress systemData for kubeenvironments.json * Making small change to trigger a re-run of ApiReview runner * Fixing extendedLocation bug in swagger * fix model validation * Carry over missing Acr properties from previous version (Azure#14490) * [python]Update readme.python.md (Azure#14493) * Update readme.python.md * Update readme.md Co-authored-by: jocawtho <[email protected]> Co-authored-by: JennyLawrance <[email protected]> Co-authored-by: msyyc <[email protected]>
* CodeGen from PR 14489 in Azure/azure-rest-api-specs Web ant93 release: Updating API version to 2021-01-01 (#14489) * Adds base for updating Microsoft.Web from version stable/2020-12-01 to version 2021-01-01 * Updates readme * Updates API version in new specs and examples * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.… (#14212) * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Add custom word * Actually bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Update AppServicePlan.json with preoperty (#14388) Adding ElasticScaleEnabled to ASP object! * Swagger changes for kubeenv (#14417) * Swagger changes for kubeenv * Add examples for create and update * Fixing model validations in examples * Supress systemData for kubeenvironments.json * Making small change to trigger a re-run of ApiReview runner * Fixing extendedLocation bug in swagger * fix model validation * Carry over missing Acr properties from previous version (#14490) * [python]Update readme.python.md (#14493) * Update readme.python.md * Update readme.md Co-authored-by: jocawtho <[email protected]> Co-authored-by: JennyLawrance <[email protected]> Co-authored-by: msyyc <[email protected]> * version,CHANGELOG * test * test fix Co-authored-by: SDKAuto <[email protected]> Co-authored-by: jocawtho <[email protected]> Co-authored-by: JennyLawrance <[email protected]> Co-authored-by: msyyc <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
* CodeGen from PR 14489 in Azure/azure-rest-api-specs Web ant93 release: Updating API version to 2021-01-01 (#14489) * Adds base for updating Microsoft.Web from version stable/2020-12-01 to version 2021-01-01 * Updates readme * Updates API version in new specs and examples * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.… (#14212) * Bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Add custom word * Actually bring in swagger for Microsoft.CertificateRegistration and Microsoft.DomainRegistration RPs * Update AppServicePlan.json with preoperty (#14388) Adding ElasticScaleEnabled to ASP object! * Swagger changes for kubeenv (#14417) * Swagger changes for kubeenv * Add examples for create and update * Fixing model validations in examples * Supress systemData for kubeenvironments.json * Making small change to trigger a re-run of ApiReview runner * Fixing extendedLocation bug in swagger * fix model validation * Carry over missing Acr properties from previous version (#14490) * [python]Update readme.python.md (#14493) * Update readme.python.md * Update readme.md Co-authored-by: jocawtho <[email protected]> Co-authored-by: JennyLawrance <[email protected]> Co-authored-by: msyyc <[email protected]> * version,CHANGELOG * test * test fix Co-authored-by: SDKAuto <[email protected]> Co-authored-by: jocawtho <[email protected]> Co-authored-by: JennyLawrance <[email protected]> Co-authored-by: msyyc <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Packages
OS
The issue
So this might not be an issue but perhaps a case of me misunderstanding some of the basic concepts. Nevertheless I am having a hard time understanding how to (if at all possible) use the
InteractiveBrowserCredential
class as an alternative to theClientSecretCredential
class when downloading from my azure storage blob (which has a private access level). TheClientSecretCredential
(based on this) works as intended, but whenever I try to use theInteractiveBrowserCredential
the following error occurs:A Reproducible example
I am a bit unsure of what exactly is the correct input for
scopes
in theauthenticate()
method. I do believe my app registration is OK (given that it works using theClientSecretCredential
class.I have tried to find related issues that could help me with this, but the closest ones I could find #13826 and #13834 does not seem to offer any specific reproducible examples (which a novice like myself is in dire need of!).
Please let me know if you need any more information regarding this issue?
Best Regards
Kristoffer
The text was updated successfully, but these errors were encountered: