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 Platform Community / Forums / Power Automate / custom connector: retr...
Power Automate
Unanswered

custom connector: retrieving username and password from basic authentication login

(0) ShareShare
ReportReport
Posted on by 4

We're in the process of implementing an oauth-server, but in the mean time we need the users to log in using a username and password they get from us, using basic authentication.

Is it possible to get this username and password, and pipe it into the actions body, using a policy?

Categories:
I have the same question (0)
  • murshed Profile Picture
    Microsoft Employee on at

    Please use basic or api key authentication option instead of exposing username/password in the body. 

    https://docs.microsoft.com/en-us/connectors/custom-connectors/connection-parameters

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

  • ebnextcom Profile Picture
    4 on at

    How do I use the username and password after they enter them? Can I access that information somehow?
    I would like to have a separate hidden action that connects to our server and retrieves a token using the username and password. The token must then be used as a header value in other connector actions.

  • murshed Profile Picture
    Microsoft Employee on at

    You should not access raw password, which is a security problem. When the you configure username/password for your connector, the user will be prompted to login when they try to create a connection to your service. The access token will be saved securely by flow and will be provided in the header for every call to your service.

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

  • ebnextcom Profile Picture
    4 on at

    Ok, thanks for answering.

    I don't get what the basic authentication does though. It does not do any validation, I can write whatever in the username and password, and it allows entry. Is there something else I need to set up?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard