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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ddeligeo
New Member

Pre-authentication prompt for OAuth2 custom data connector

Hello all, I'm relatively new to Power BI and the M language, and I'm trying to build a custom data connector for a SaaS application.  Using some relevant examples online, I've made some good progress: OAuth2 authentication flow is working, and I'm able to present the user with data source options via a navigation table and successfully ingest the data.

 

Here's the problem:  Our application is a multi-tenant, multi-environment SaaS solution.  In order to authenticate, the user needs to specify parameters for both their environment (commercial, gov, private instance, etc.) and their tenant within that environment.  Right now, I have the connector hard-coded to a dev environment and a specific dev tenant, but I really need to parameterize these values so that I don't have to build env/tenant specific versions of the connector for each of our customers.  The values would ideally be captured once, i.e. the first time the user uses the connector, and then defaulted from that point forward.  The key is that they have to be captured prior to authentication.

 

Any help would be appreciated.

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.