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.

(1) ShareShare
ReportReport
Posted on 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 at
    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 at
    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,833 Super User 2025 Season 1 on at
    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics