Forum Discussion
OAuth flow not validating credentials for On-Premise Gateway
I had slight progress on this, however still can't get things to work as expected.
Firstly, I added the code for the TestConnection, which I forgot to include in my first chunk of code I posted. This did not allow any progression of my error.
FacebookForBusiness = [
TestConnection = (dataSourcePath) => { "FacebookForBusiness.Navigation"},
Authentication = [
OAuth = [
StartLogin = StartLogin,
Refresh = Refresh,
FinishLogin = FinishLogin
]
],
Label = Extension.LoadString ("DataSourceLabel")
];
I also experimented of changing my redirect URI
from...
https://oauth.powerbi.com/views/oauthredirect.htmlto....
https://preview.powerbi.com/views/oauthredirect.html
When I did this step, I got the sign-in box to close, but with an error message.
Status code: 400
Error Code: DMTS_PublishDatasourceToClusterErrorCode
Any clues on the next steps?
- Anonymous6 years agoNot applicable
So, I am narrowing this down a little bit, however still no success.
When running the OAuth flow, when I have the redirect as
https://oauth.powerbi.com/views/oauthredirect.htmlThe start of the flow goes to the preview.... redirect URI when on adding it to the gateway.
This explains why it works on desktop, as when I run it in the Desktop it correctly runs, as it correctly goes via the correct Redirect URI (as seen on Fiddler trace).
Why would the gateway data source binding re-point to the preview redirect when it is not being told to !