cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shipwreck
Frequent Visitor

Custom Connection to internal REST API Issues

I've been attempting to create a Custom Connector for Flow to query an internal REST API. I've encountered a couple of issues.

 

This is the Postman HTTP generated code:

 

POST /api/v1/blah HTTP/1.1
Host: blah.blah.blah
Authorization: Basic blahblahblahblahblahblah
Content-Type: application/json;charset=UTF-8
Cookie: JSESSIONID=7B43DB0977C71E3447ECC30F3ABC0025

{
"type": "BlahTokenBlah"
}

 

1.  I've found that when you enable the "Connect via on-premises data gateway" option, your security options are limited to "No authentication", "Basic authentication", and "Windows authentication", so the "API Key" option prevents me from entering the "Authorization" in the header. If you try to, you get an error indicating "Authorization" is not permitted in the header and to use the "API Key".

 

2. No gateways. I have several gateways for SQL, SharePoint, File System and FTP, but when I attempt to create a connection for the Custom Connector, there are no gateways. We have gone over the on premise gateways several times and cannot identify an issue.

 

1 ACCEPTED SOLUTION

Accepted Solutions
rohsh354
Community Support
Community Support

Hello,

 

#1: This is by design as gateway doesn’t support API Key authentication.

 

#2: The person who installed the gateway at first place should share the gateway with you. This will allow the gateway to be visible and use by other users:

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/gateway-management#view-and-manage-gate...

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/gateway-management

 

If its already shared with you, then check with the person who installed the gateway, if he/she can view the gateway when creating custom connector.

 

 

 

 

View solution in original post

1 REPLY 1
rohsh354
Community Support
Community Support

Hello,

 

#1: This is by design as gateway doesn’t support API Key authentication.

 

#2: The person who installed the gateway at first place should share the gateway with you. This will allow the gateway to be visible and use by other users:

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/gateway-management#view-and-manage-gate...

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/gateway-management

 

If its already shared with you, then check with the person who installed the gateway, if he/she can view the gateway when creating custom connector.

 

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,916)