web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector Authe...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard