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

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard