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)
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:
Hope it could be your reference.
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.
In the security tab, define the apikey:
In the next step: Definition do not inlcude the apikey in the Query:
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.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.