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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
xsgao
Regular Visitor

Having both OAuth and AAD authentication in a custom connector

I am trying to include both AAD and OAuth authentication supports in a customer connector (using data connector SDK + ODBC driver). But it seems like Power BI will take only the first one. For example, if I have the following code:

 

 

 

    Authentication = [
        Aad = [
            AuthorizationUri = AadGetAuthorizationUri,
            Resource = AadGetResource,
            Scope = ".default"
        ],
        OAuth = [
            StartLogin = StartLogin,
            FinishLogin = FinishLogin,
            Refresh = Refresh,
            Logout = Logout,
            Label = "OAuth"
        ],
        Implicit = [],
        UsernamePassword = [
            Label = "LDAP"
        ],
        Windows = [
            Label = "Kerberos"
        ],
        Key = [
            Label = "Personal Access Token (JWT)",
            KeyLabel = "Personal Access Token (JWT)"
        ]
    ],

 

 

 

I will get:

 

pbi auth - 2.png

 

If I move OAuth to the top, I will get:

 

pbi auth.png

 

Is it possible to have both AAD and OAuth in the same connector?

 

I saw that Databaricks connector provides two connectors, one supports OAuth, and the other supports AAD. Do I have to do the same?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @xsgao ,

Based on your description, it is indeed difficult to support both AAD and OAuth authentication in the same custom connector in Power BI. This is because Power BI usually prioritizes the first authentication method listed, which is why you'll run into problems when trying to include both.

To implement support for both AAD and OAuth, you may need to create two separate connectors, similar to what the Databricks connector does. This way, each connector can handle specific authentication methods without conflict.

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @xsgao ,

Based on your description, it is indeed difficult to support both AAD and OAuth authentication in the same custom connector in Power BI. This is because Power BI usually prioritizes the first authentication method listed, which is why you'll run into problems when trying to include both.

To implement support for both AAD and OAuth, you may need to create two separate connectors, similar to what the Databricks connector does. This way, each connector can handle specific authentication methods without conflict.

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors