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 Authe...
Power Automate
Answered

Custom Connector Authentication Expiry Issue

(0) ShareShare
ReportReport
Posted on by 21

Hi All,

 

I have built a custom connector, to consume some of the endpoints for the microsoft graph, that I wish to use in my flow.

 

I have setup my app registration and have created my custom connector and can use it in my flow... but every hour the flow fails with the message saying that one of my connections, my custom connection, is in a disconnected state.

 

"Broken connections

We have found 1 of your connections in a disconnected state. Would you like to fix them now?"

 

I get the same issue using MS Flow or doing this via a Logic App and Logic App connector.

 

Which makes me think this is related to the appregistration settings?

How do I stop this scenario from happening?

What configuration does MS use to get their connectors working and NOT expiring?

 

My connector is using OAuth 2.0.

 

I have read the following - without coming to a resolution:

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_other-mso_o365b/ms-flow-access-token-error/2e9b7b3d-bb74-4102-942f-8f3f59f7d8f3

 

https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes

 

Any insight and help would be much appreciated

 

Pete

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

    Hi @cl0wn ,

     

    Have you enabled MFA while signing in the connection?

     

    Have your admins done something in the background that is affecting the refresh requirements so flow’s attempts to refresh fail?

     

    I have seen another similar thread, please check it at here:

    https://powerusers.microsoft.com/t5/General-Flow-Discussion/Flow-Connections-error-due-to-Credential-Expiration/td-p/38120

     

    Best regards,

    Mabel

     

  • cl0wn Profile Picture
    21 on at

    Hi Mabel,

     

    Yes I saw that other post but it hasn't solved anything.

     

    I also don't have MFA enabled. This is happening on my organisations tenant as well as my own developer tenant. Netither of those tenants use MFA. Both have exactly the same issue.

     

    Pete

  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @cl0wn ,

     

    Thanks for updating.

     

    I am not sure how is your Custom API configured, please follow this blog and try again with it:

    https://medium.com/capgemini-dynamics-365-team/a-microsoft-flow-custom-connector-step-by-step-from-scratch-microsoft-teams-86c3a35f37dc

     

    I will try to invite more resources into this issue. I will back to you once I got any updates.

     

    Best regards,

    Mabel

     

  • Verified answer
    cl0wn Profile Picture
    21 on at

    Hi Mabel,

     

    That seems to have worked by following that article. (I'll double confirm over the next couple of days)

     

    The only difference betweent the two, was the Identity provider. When I set mine up I had set the connector to use OAuth 2.0 -> Generic Oath 2 as the identity provider.

     

    The article you linked to used:

    OAuth 2.0 -> Azure Active Directory as the identity provider.

     

    Whilst that works is there way to configure the Generic Oauth 2 identity provider timeout settings? I am guessing this is somewhere in AzureAD?

     

    Pete

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 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard