Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
Unanswered

Basic Auth with no Password

Like (1) ShareShare
ReportReport
Posted on 30 Apr 2022 08:42:41 by 3

I am creating a custom connector for an API that supports Basic Auth, but the API key is used as the User Name and the Password should be left blank. Does anyone know if this is possible, when I try and use the connector it is mandating that I enter in the password which I presume is failing it. Error returned is below, I did the some tests in Postman and with the User Name only it works and with Password define it returns the same error as I get when creating Custom Connector.

 

{
    "error""Invalid Authorization header",
    "type""ch:service"
}
Categories:
  • Suggested answer
    SS-20030055-0 Profile Picture
    2 on 20 Mar 2025 at 01:03:40
    Basic Auth with no Password
    I worked it out.
     
    In our business, we have an API with our bank which we use to take payments on schedule. The banks API specifically requires that there is NO PASSWORD sent with authentication.
     
    After trying everything, the winning combination is selecting "Raw" authentication and putting your Basic XXXXndkNdkds384ljLetc... in the "Value" box. Something like this:
  • richardcarrigan Profile Picture
    Microsoft Employee on 26 Sep 2023 at 18:44:09
    Re: Basic Auth with no Password

    Hi @Dobadino ,

     

    Not sure if this will be helpful, and maybe you've already found a solution in the past ~18 months, but I was able to work around this issue by adding a single space (" ") as the password for the API I was building a custom connector for. It would be nice if we as the custom connector developer could have the option to make the password optional, but this has proved to be a solid workaround for me.

     

    Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard

Featured topics

Loading started