Get rid of OAuth 2.0 pop dialog browser

Binh Hua 1 Reputation point
2020-05-13T22:36:58.357+00:00

My team is trying to embed Power BI reports into our Salesforce visualforce pages. So far, I have followed the Embedding a Power BI Report into Salesforce blog from Microsoft: https://powerbi.microsoft.com/en-us/blog/embedding-a-power-bi-report-into-salesforce/

Since we have more than one page that will be displaying the reports, we have made some changes to have a visualforce page that will display the report call another visualforce page that would handle the authentification and redirect the user back to the report page once they have obtained the access token. The flow used here is the OAuth 2.0 auth code grant based on the blog, and the authorization code flow begins with the client directing the user to the authorize endpoint where the user would need to log in. I was wondering if there is a way to start the flow without the "Pops up a browser dialog" that requires the user to sign in. Our users will be signed in at this point and only need to request an authorization code.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,563 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-05-14T06:03:05.917+00:00

    @Binh Hua , Unfortunately, there is no way to surpass the dialog box asking the user to enter the username and password since that Authorization Code Grant Flow requires interactive logon. For issuing the code from the /authorize endpoint the interactive logon is mandatory. This is how the protocol works.

    Hope this helps. Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as "Answer" if the above response helped in answering your query.

    0 comments No comments