Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17881

Power BI Embedded not working for "app owns data" and federated login (invalid SAML request error)

$
0
0

Hi,

 

I'm using Power BI Embedded "App owns data" approach. I have created a master user with Pro account in my customer's tenant. When I login with that user in powerbi.com, I get redirected to my organization login page (SAML based), I enter my credential and then redirect back to powerbi.com

 

Now when I use App owns data approach, my code is failing at this line

 

// Create a user password credentials.
var credential = new UserPasswordCredential(Username, Password);

// Authenticate using created credentials
var authenticationContext = new AuthenticationContext(AuthorityUrl);
var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl,
ClientId,
credential);

 

It says "AADSTS75005: The request is not a valid SAML 2.0 protocol message". I suspect this is because when I'm trying to log in, in the backend it is taking me to my org page which is based on SAML. It goes to a URL like this

 

https://abc.com/SSO.saml2

 

How to solve this issue? Can I pass some param so I can bypass this for embedding?

 

Appreciate help

 

Ranbeer


Viewing all articles
Browse latest Browse all 17881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>