web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

basic authentication

(1) ShareShare
ReportReport
Posted on by 6

I am trying to generate a swagger document that will enable Flow to work with our REST/ODATA service.  The service is protected by basic authentication.  I have been using the "http + swagger" trigger type and Flow appears to accept the swagger document. I am able to configure an query and I was able to map fields for an example action.  I don't see how I am suppose to specify the credentials for the basic authentication.  I am allowed to save the Flow, but any attempt to run the flow will fail because the service just returns 401 (not authorized) as expected since no credentials have been specified.  Under the "Show advanced options" I do get an Authentication text box with the phrase: Enter JSON object of authentication parameters.  I assume this may be where I need to enter the credentials, but it is not clear how I would enter them.  

 

The swagger document has the following security definition:

 

"securityDefinitions": {
"basicAuth": {
"type": "basic",
"description": "HTTP Basic Authentication."
}
},
"security": [
{
"basicAuth": []
}
],

 

 

Categories:
  • DougL Profile Picture
    54 on at

    Is there a solution to this or is basic authentication not supported by this default Microsoft Flow?

     

    @steveum Did you ever figure out an answer to this?

  • DougL Profile Picture
    54 on at

    I guessed on this and got an error that directed me the right way. The format of the JSON is:

     

    {
     "type": "Basic",
     "username": "MyUser",
     "password": "MyPass"
    }


    If you run a flow with invalid data within it, it will show you the failed flow and what the valid parameters are. I'm sure this is also documented somewhere, but I could not find it.

    In my case I guessed on "username" and "password", and it yelled at me that the type was not specified and gave a few possible values for type, one of which was "Basic", which is what I needed. Updating the file and my flow ran successfully.

  • Steve6543 Profile Picture
    6 on at

    As I recall I discovered the same JSON and made the same guess.  That allowed me to proceed.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard