The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
Hello everyone!
My goal is to click a button on my application, redirect to power bi with silent credentials (microsoft account is stored in my app), without it to prompt for credentials again nor use an embed solution. Sounds simple, but every adapted tutorial i've tried is prompting for those credentials again.
My app is using this code right now just to get de AccessToken or IdToken
// Create a user password cradentials. var credential = new UserPasswordCredential(Username, Password); // Authenticate using created credentials var authenticationContext = new AuthenticationContext(AuthorityUrl); var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential); var token = authenticationResult.AccessToken; var idToken = authenticationResult.IdToken;
Configured the redirect url in my Azure App too as "https://dev.powerbi.com/Apps/SignInRedirect" or "https://app.powerbi.com"
One thing i can assure, if i use the embed solution, it connects perfectly in my Power BI workspace, and can access any report i want, so wrong credentials or wrong ids are of the table.
Anyone has any suggestions or any working tutorial that fits my problem?
Regards,
Jack Worb
User | Count |
---|---|
17 | |
2 | |
2 | |
2 | |
1 |
User | Count |
---|---|
20 | |
10 | |
5 | |
4 | |
3 |