Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
Suggested answer

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 4
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:
  • Suggested answer
    IL-03041536-0 Profile Picture
    4 on 05 May 2025 at 12:23:46
    Failed to refresh access token for service: oauth2. Error: Missing refresh token.
    I solved it by adding "offline_access" to the scope in the custom connector.
  • IL-03041536-0 Profile Picture
    4 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

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 > Power Automate - Connector Development

#1
RohanWadiwala Profile Picture

RohanWadiwala 16

#2
sdr7893 Profile Picture

sdr7893 2

Overall leaderboard

Featured topics

Loading started