Skip to main content

Notifications

Community site session details

Community site session details

Session Id : KHI4uF2KBlVQ+VXGY8oBrZ
Power Automate - Connector Development
Unanswered

Failed to refresh access token for service: oauth2. Error: Missing refresh token.

Like (1) ShareShare
ReportReport
Posted on 3 Apr 2025 16:17:22 by 2
I create a custom connector with authentication type: OAuth 2.0.
If a few hours later I test an action from inside the connector, the test fails.
If I go to connection list, I see a connection with a link to reconnect.
Now if I click on the link, the connection get connected with no other actions and if I repeat the connector test, now all go well.
The error that I can see in the connection details is:
Failed to refresh access token for service: oauth2. ... Error: Missing refresh token.
How can I found the source of the error?
 
The Rest Api, that the connector call, manage only the default connector: 772fxxxxxxxxx/.default
Inside the App Registration, in the Azure Portal, how have I to set the scopes and the API permissions?
Inside the security section of the connector I set the scope: 772fxxxxxxxxx/.default. Any other settings don't work at all.
 
Thank you all.
 
Ignazio
Categories:
  • IL-03041536-0 Profile Picture
    2 on 07 Apr 2025 at 09:26:45
    Failed to refresh access token for service: oauth2. Error: Missing refresh token.
    I attached the security tab of the custom connector.
    The api that I use are working when called from other client application. No one tell me of problems after hours of work.
    How can I verify the correct implementation of the refresh token process? I can access the source code.
     
    Ignazio
  • MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on 06 Apr 2025 at 15:34:40
    Failed to refresh access token for service: oauth2. Error: Missing refresh token.
    Can you share the configuration of security tab of the custom connector? and other question your api have implemented refresh token process?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard

Featured topics

Loading started