login about faq

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 ?

asked Apr 11 '17 at 03:42

mafact's gravatar image

mafact
11


Thanks, I'll have to investigate a bit to see how this is done... :)

link

answered Apr 11 '17 at 11:06

chilkat's gravatar image

chilkat ♦♦
12.8k318385539

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..

link

answered Apr 11 '17 at 11:34

chilkat's gravatar image

chilkat ♦♦
12.8k318385539

Hi Thank, will read it now.

If you can careate a example for VBScript, it would be very nice :)

Thank in all case,

JF

link

answered Apr 11 '17 at 11:44

mafact's gravatar image

mafact
11

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

VBScript: Azure ServiceBus - Request a Token from ACS

Xojo Plugin: Azure ServiceBus - Request a Token from ACS

link

answered Apr 11 '17 at 12:35

chilkat's gravatar image

chilkat ♦♦
12.8k318385539

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())
   ...

link

answered Apr 12 '17 at 05:49

mafact's gravatar image

mafact
11

edited Apr 12 '17 at 08:09

Thanks for sharing the solution, I really appreciate it!

link

answered Apr 12 '17 at 07:16

chilkat's gravatar image

chilkat ♦♦
12.8k318385539

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×5

Asked: Apr 11 '17 at 03:42

Seen: 615 times

Last updated: Apr 12 '17 at 08:09

powered by OSQA