cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DevlMTL2019
New Member

Custom Connector - Authorization: Basic API_KEY - how?

I am trying to connect to an external service which authenticates using Basic Authentication however the value of the parameter is the API Key. For example - headers:

 

Authorization: Basic *your_api_key_here*

 

I cant find how to configure this scenario as my options are either Basic Auth with Username/password OR No Auth (however when i specify authorization in request headers manually, this is also not allowed)

 

Any suggestions?

7 REPLIES 7
v-yamao-msft
Community Support
Community Support

Hi @DevlMTL2019,

 

How is the API key authentication configured in your definition?

There are several options available for authentication in custom connectors. The Cognitive Services APIs use API key authentication, so that’s what’s specified in the OpenAPI definition.

Please check more details about it at here:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition#review-authe...

Hope it could be your reference.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

There is no way to configure it the way i have illustrated above.

 

What i need is - "Authorization: Basic API_KEY"

What you have is:

- Basic Auth: Only has a place for Username + PWD so that you create your own hash of the two. I need to specify this value, not have you create it.

- API KEY: which uses a parameter passed in the header or query.

- No Auth: Wont allow me to specify Authorization headers in the action queries.

keatklein
Regular Visitor

Still no solution for this?

I am also looking for the solution . Thank you!


@keatklein wrote:

Still no solution for this?


 

Any solution?

In the security tab, define the apikey:

In the next step: Definition do not inlcude the apikey in the Query:

https://api.app.com/items/v1/lists/1/contacts/all/?hapikey=abc&count=10
use

https://api.app.com/items/v1/lists/1/contacts/all/count=10

the hapikey=abc will be added by the system based on the key your enter when creating the connection.

Hope this short explanation helps someone.

Anonymous
Not applicable

It works for me.

 

castuloramirez_0-1596092581507.png

 

Helpful resources

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

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,526)