Question:
Hi,
I must read and delete some xml files from a topic/subcription.
I only received a endpoint string linke that ;
Endpoint=sb://xxxxxx-acs.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=xxxxxyyyyzzzzzbbb
It seem it's an ACS connection string, not SAS. I can't use the AD autorisation, nor the SAS itself. So I wonder how to obtain a token.
Any helps ?
Thanks, I'll have to investigate a bit to see how this is done... :)
After searching... this is the best hope I could find:
https://docs.microsoft.com/en-us/rest/api/servicebus/request-a-token-from-acs
If this is the answer, then it's just a matter of duplicating this HTTP POST with the correct information. I'll create an example that is my best guess, but unfortunately I don't have the means to test it for now..
Hi Thank, will read it now.
If you can careate a example for VBScript, it would be very nice :)
Thank in all case,
JF
Here's the untested example:
Android: Azure ServiceBus - Request a Token from ACS
Classic ASP: Azure ServiceBus - Request a Token from ACS
C: Azure ServiceBus - Request a Token from ACS
Chilkat2-Python: Azure ServiceBus - Request a Token from ACS
C++: Azure ServiceBus - Request a Token from ACS
C#: Azure ServiceBus - Request a Token from ACS
C# UWP/WinRT: Azure ServiceBus - Request a Token from ACS
DataFlex: Azure ServiceBus - Request a Token from ACS
Delphi ActiveX: Azure ServiceBus - Request a Token from ACS
Delphi DLL: Azure ServiceBus - Request a Token from ACS
.NET Core C#: Azure ServiceBus - Request a Token from ACS
Excel: Azure ServiceBus - Request a Token from ACS
Visual FoxPro: Azure ServiceBus - Request a Token from ACS
Java: Azure ServiceBus - Request a Token from ACS
Lianja: Azure ServiceBus - Request a Token from ACS
MFC: Azure ServiceBus - Request a Token from ACS
Mono C#: Azure ServiceBus - Request a Token from ACS
Node.js: Azure ServiceBus - Request a Token from ACS
Objective-C: Azure ServiceBus - Request a Token from ACS
Perl: Azure ServiceBus - Request a Token from ACS
PHP ActiveX: Azure ServiceBus - Request a Token from ACS
PHP Extension: Azure ServiceBus - Request a Token from ACS
PowerBuilder: Azure ServiceBus - Request a Token from ACS
PowerShell: Azure ServiceBus - Request a Token from ACS
PureBasic: Azure ServiceBus - Request a Token from ACS
Python: Azure ServiceBus - Request a Token from ACS
Ruby: Azure ServiceBus - Request a Token from ACS
SQL Server: Azure ServiceBus - Request a Token from ACS
Swift: Azure ServiceBus - Request a Token from ACS
Tcl: Azure ServiceBus - Request a Token from ACS
Unicode C: Azure ServiceBus - Request a Token from ACS
Unicode C++: Azure ServiceBus - Request a Token from ACS
Visual Basic 6.0: Azure ServiceBus - Request a Token from ACS
VB.NET: Azure ServiceBus - Request a Token from ACS
VB.NET UWP/WinRT: Azure ServiceBus - Request a Token from ACS
Thanks,
It work fine :)
For information, to use the token with a rest object, juste do the following ;
... success = sbToken.Prepend("WRAP access_token=" & """" ) success = sbToken.Append("""" ) success = rest.AddHeader("Authorization",sbToken:GetAsString()) ...
Thanks for sharing the solution, I really appreciate it!