Skip to main content

Notifications

Power Automate - Connector Development
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?

  • ebnextcom Profile Picture
    ebnextcom 4 on at
    Re: custom connector: retrieving username and password from basic authentication login

    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?

  • murshed Profile Picture
    murshed on at
    Re: custom connector: retrieving username and password from basic authentication login

    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
    ebnextcom 4 on at
    Re: custom connector: retrieving username and password from basic authentication login

    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
    murshed on at
    Re: custom connector: retrieving username and password from basic authentication login

    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 👍.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics