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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,857)