Skip to main content

Notifications

Power Automate - Using Connectors
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.

  • HarrisonS Profile Picture
    HarrisonS 4 on at
    Re: Are other flow than accessCode supported by OAuth2 custom connectors?

    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.

  • Re: Are other flow than accessCode supported by OAuth2 custom connectors?

    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

  • sdeverly Profile Picture
    sdeverly 6 on at
    Re: Are other flow than accessCode supported by OAuth2 custom connectors?

    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

  • Re: Are other flow than accessCode supported by OAuth2 custom connectors?

    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

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Are other flow than accessCode supported by OAuth2 custom connectors?

    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

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,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics