简体   繁体   中英

Azure Logic App Custom Connector With Basic Auth

I have an external API. I connect to it with Postman via basic auth and all is well.

在此处输入图片说明

The blacked out part is the base64 encoded username:password combination.

I save this route as a Postman collection and that collection contains the following, relevant block:

"headerData": [
{
     "key": "Authorization",
     "value": "Basic <redacted>",
     "description": "",
     "enabled": true
}

At this point, I'm expecting that I will be able to upload the collection file to Azure and it will create me a custom connector that uses my username:password to authenticate.

But it does not:

在此处输入图片说明

Instead, Azure is aware that it will need to use basic auth, but it will not be using the credentials I supplied, nor will it allow me to enter credentials.

1) How would a user enter a valid username/password to use this connector?

2) I want this connector to work autonomously, without user intervention. Am I misunderstanding something?

EDIT:

It's apparently possible to provide the username/password via the logic app itself, but I am never prompted, nor is there anywhere to insert the information:

在此处输入图片说明

That's the custom connector there with GETReservations . Basic point still stands. I want this to be unattended, no user interaction (after initial setup, of course).

The Basic authentication screen you have shown is just configuring the labels for username/password that will be displayed when you use the connector within a Logic App.

So if I understand your issue correctly, it should just be a matter of using that custom connector within a Logic App at which point you will be prompted for the username and password.

You add the credential when you create the connection in the logic app. You have to create a new connection (click on change connection and make a new one).

This will create a new Api.

You can see you R25LogicAppCustomConnector as an API object in your resource group.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM