Forum Discussion
Custom Connector, Gateway & OAuth
Hi rpiboy_1 ,
Thanks for reaching out to the Microsoft fabric community forum.
There is a limitation related to On-prem Gateway and Oauth, please check if it is related to the error you are facing
When you use OAuth2 credentials, the gateway currently doesn't support refreshing tokens automatically when access tokens expire (one hour after the refresh started). If you get the errors "InvalidConnectionCredentials" or "AccessUnauthorized" when accessing cloud data sources using OAuth2 credentials even though the credentials were updated recently, you might be hitting this error. This limitation for long running refreshes exists for both VNet gateways and on-premises data gateways.
Troubleshoot the on-premises data gateway | Microsoft Learn
I hope this information helps. Please do let us know if you have any further queries.
Thank you
I don't see how this could be a refresh error since the issue is occuring when trying to establish an initial connection, not once the connection is in use. As I noted in my follow-up reply furthe testing demonstrates that the correct data is not being returned on the grant, because I never get the chance to grant permission in the first place, the browser simply flashes.
- v-nmadadi-msft8 months agoCommunity Support
Hi rpiboy_1 ,
Sorry to know it didn’t help. Please consider reaching out to Microsoft Support. You can provide them with all the troubleshooting steps you've already taken, which will help them understand the issue better and provide a resolution. They might be able to identify something specific about your admin account setup or provide a solution that isn't immediately obvious.
Below is the link to create Microsoft Support ticket:Create a Fabric and Power BI Support Ticket - Power BI | Microsoft Learn
Thank you