question

BinhHua-6905 avatar image
BinhHua-6905 asked ·

Get rid of OAuth 2.0 pop dialog browser

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.

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

soumi-MSFT avatar image
soumi-MSFT answered ·

@BinhHua-6905, 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.

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.