-
Notifications
You must be signed in to change notification settings - Fork 21
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
Provide an example for NewTokenCredential #13
Comments
Thanks @patnaikshekhar for reaching out! The TokenCredential can be used for all scenarios. Are you particularly interested in MSI? We can certain add a sample. I've logged this work item. |
Yes a MSI example would be great. That is a pretty common use case. Thanks! |
I am also trying to use NewTokenCredential to access azure blob with MSI. |
Hi @VivekDevops, thanks for reaching out! We are about to make some major improvements in this area. I'll make sure that we include an appropriate sample this time. |
Hi @zezha-msft thanks for the efforts. In the meantime, can you please give some guidance here. I am trying to use NewTokenCredential to access azure blob. I am able to generate the TokenCredential. However when I try to use the same to access the azblob, I am getting below errors. RESPONSE Status: 400 Authentication information is not given in the correct format. Check the value of Authorization header. The same token works, when I use the rest api instead of the azblob go sdk |
Hi @VivekDevops, we have a test here that uses OAuth, perhaps it could help you? |
Can we have an example how to use ManagedIdentity? |
It would be very useful to see an example with the NewTokenCredential call. Is this used to authenticate using managed service identity? What should the value of Initial Token Value be?
Thanks!
The text was updated successfully, but these errors were encountered: