Forum Discussion
Unable to get the data after login using oauth in custom connector
- Anonymous2 years ago
Hi paocohe ,
Please check the following aspects:Check Redirect URI: Ensure that the redirect_uri specified in your code matches exactly with the one registered in your OAuth app settings. It must be whitelisted and correctly configured on the server side to redirect back to Power BI.
Validate Authentication Flow: The OAuth flow requires a correct sequence of steps, starting with user authorization, obtaining an access token, and then using that token to access resources. Please review the steps in the OAuth 2.0 authentication with Power BI documentation to ensure your flow matches the expected pattern.
Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft LearnInspect Callback Handling: After the service authenticates the user, it should redirect the user-agent back to the redirect_uri provided. The service will append an authorization code to this URI, which your code should then exchange for an access token. Verify that your service is correctly appending the code and that your FinishLogin function is correctly extracting and using this code.
Perhaps you could provide the version of Power BI Desktop you have and a screenshot of the interface where you are experiencing the problem. Thank you!
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Actually your first suggestion solved the issue! Thanks 🙂