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 / Using OAuth with passw...
Power Automate
Unanswered

Using OAuth with password grant type

(1) ShareShare
ReportReport
Posted on by 36
I have an API I am trying to build a connector for. The API uses OAuth, but requires the password grant type. I can’t see an option for this when setting up the security settings on the connector.

I can set up the connector as having no authentication and then create an action that calls the token endpoint and I successfully get the access token back, but I then can’t use that to set the Authorization header on subsequent actions (and my username and password would become part of the flow as well, which isn’t great)

Is there any other way of approaching this?
Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @MarkData8 ,

     

    From the doc on creating a custom connector, it seems that there is no option for requiring the password grant type:

    https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank#specify-authentication-type

     

    I will help do more research on this issue and then back to you.

     

    Best regards,

    Mabel

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Has there been an update to this issue. I am also working on building a Custom Connector for an API that requires the grant type to be set. It seems to be a common requirement on APIs.

  • Jermeel Profile Picture
    8 on at

    Bump.  I am having the same issue.  I need to pass a "type" parameter to my authorization URL.  I cannot get past the authorization stage for my custom connector without this.  Cat Sad

  • seriewe Profile Picture
    4 on at

    Hi,
    it's been a few years, but I'll try my luck anyway. Could anyone use the password flow?
    If I modify the Swagger definition, I can change it to password flow
    securityDefinitions > oauth2-auth > flow
    but it leads to an error, which doesn't say exactly what the problem is.

    seriewe_0-1695569369344.png

     

  • sammysword Profile Picture
    76 on at

    Hello @seriewe 

     

    I seen you'd commented on this a few months back. I am facing the same issues. Did you resolve this?

  • seriewe Profile Picture
    4 on at

    Hi @sammysword  nope, https://powerusers.microsoft.com/t5/Using-Connectors/Using-OAuth-with-password-grant-type/m-p/2569310/emcs_t/S2h8ZW1haWx8bWVudGlvbl9zdWJzY3JpcHRpb258TFJTWkExRU1BVTIzT0R8MjU2OTMxMHxBVF9NRU5USU9OU3xoSw#M21507 It looks like just "authorization code flow" or API-Key is supported by custom connectors supported. 

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard