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 / Are other flow than ac...
Power Automate
Unanswered

Are other flow than accessCode supported by OAuth2 custom connectors?

(0) ShareShare
ReportReport
Posted on by 6

Hello,

I'm trying to use a custom connector to access a REST api. The REST api uses OAuth2 authentication, but it only supports password and application OAuth2 flows. I downloaded the swagger file for my connector, and tried to change  the flow to application or password but I get an error when I try to update my connector with the modified file:

Specified file does not match OpenAPI 2.0 specification: 'JSON is valid against no schemas from 'oneOf'. Path 'securityDefinitions.oauth2_auth'.'

It seems only accessCode is supported, which prevents me to connect to the REST api.

Any workaround for this problem?

Thanks.

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @sdeverly,

     

    Could you share the details and creation steps of your custom connector?

    Please check and see if the following link would help:

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

    https://docs.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition

     

    Best Regards,

    Barry

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hey, @sdeverly!

    Thank you for posting on the Flow Community Forum! It appears as though @v-bacao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • sdeverly Profile Picture
    6 on at

    Hello,

    I was trying to build a connector for this API: https://developer.shotgunsoftware.com/rest-api/

    Unfortunately it does not support the most standard accessCode OAuth2 workflow: https://developer.shotgunsoftware.com/rest-api/#authentication.

     

    I managed to build a workaround by not using a connector, but having http nodes in my flow which:

    • Issue a client_credential request.
    • Retrieve the access token and set it in the headers for subsequent calls to the REST api.

    It works, but a new access token is pulled out every time the Flow is evaluated.

    Thanks

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hello, @v-bacao-msft!

    Thank you for posting a reply to a topic on the Microsoft Flow Community! It appears that the users who you have been engaging in this thread with are now awaiting your reply! Please follow-up on this thread ASAP.

    Thank You!

    -Gabriel

    Microsoft Flow Community Manager

  • HarrisonS Profile Picture
    4 on at

    HI @sdeverly , could you please share the configuration of your HTTP nodes? I also similarly need to get an OAuth2 token with 'client_credential'. I have been trying to create a flow to do the same thing but have been getting errors.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard