Get rid of OAuth 2.0 pop dialog browser

Binh Hua 1 Reputation point

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:

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.
20,456 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,761 Reputation points Microsoft Employee

    @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