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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors