Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mikelarah
Advocate I
Advocate I

Scheduled refreshes for OAuth2 authenticated datasources

What is recommendation for handling scheduled refreshes on Datasets/Dataflows when you are using OAuth2 credentials to connect to a datasource?


It seems that once the access token expires, then the scheduled refresh will no longer work - and there is no way to provide a refresh token as part of the credentials.


We can work around this for some datasources by using non-expiring credentials (e.g. basic auth). But for some datasources (e.g. Dataflow), OAuth2 is the only option.

 

We are considering creating our own service for updating credentials and triggering the refreshes, unless there is something available in the platform we are missing?

 

2 REPLIES 2
Aron_Moore
Solution Specialist
Solution Specialist

We use a 'service' account that has credentials that don't expire.

I'm not sure I understand? We also use 'service account' users to get around expiring passwords, but for the datasource credentials you have to provide an access token (not the username/password basic creds) which does expire.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors