Custom Connector OAuth2 On-Premises Data Gateway: Broken Redirect #357
Unanswered
georgebeveridgeQR
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a custom connector which uses OAuth2 with my Django web app.
It works correctly with Power BI desktop and in the Visual Studio Code Power Query SDK.
I have set up an On-Premises Data Gateway to use it in the Power BI service, but I cannot get it to work.
In the Power BI service, when I choose "Edit credentials", either when creating a new connection to my gateway, or manually adding the datasource of my semantic model to my gateway the following happens (text description below video):
Power.BI.-.Google.Chrome.2025-04-10.17-02-37.mp4
Click me (video steps)
I have tried changing my pbi_redirect_uri to https://gatewayadminportal.azure.com/OAuthRedirect, but then it never makes a request to my web app. The popup opens and closes, and then when I try to create the connection it makes a post request to my web app with no auth token.
Can anyone tell me why the connector / PBI service does not ingest the oauth2 code returned in the popup, and ideally how to make my connector work in the Power BI service?
Thank you
Additional info:
I have implemented
TestConnectionand it works in the VS Code SDKI do not have a Power BI premium license or premium workspace.
I am not using the (personal) gateway.
Both https://gatewayadminportal.azure.com/OAuthRedirect and https://oauth.powerbi.com/views/oauthredirect.html are registered as allowed redirect urls in my Django application.
My connector code: powerQRy.pq:
Beta Was this translation helpful? Give feedback.
All reactions