Powerbi-docs: HomeController example uses UserPasswordCredential which the ADAL team doesn't support 'by design' in .NET Core

Created on 28 Nov 2018  Â·  8Comments  Â·  Source: MicrosoftDocs/powerbi-docs

It would be helpful for the HomeController example to be re-created to not rely on UserPasswordCredential, as the ADAL team has judged the use of UserPasswordCredential as such a poor practice they explicitly won't support implementing UserPasswordCredential in the .NET Core version of the ADAL library. (see https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/482)


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-bug powerbsvc pri1

Most helpful comment

You closed this thread without proving any information, direction, timing, or help. Can you re-open it and/or provide the code to achieve what this page documents using the core library?

All 8 comments

Thanks for your comment, @krouskop. We’ve forwarded your feedback to the writer, who should respond to this thread shortly.

Agree @krouskop, having trouble trying to figure out the .NET Core implementation.

@krouskop Apologizes for the delayed response. There are current discussions to make changes to this piece. I will update everyone once I have more information about this topic.

@krouskop

We are aligning to restructure the authentication portion to fit better best practices.

No ETA on when this information will be released. As such for now, UserPasswordCredential is the only current option.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

You closed this thread without proving any information, direction, timing, or help. Can you re-open it and/or provide the code to achieve what this page documents using the core library?

@markingmyname is there any update on this?

This issue has been reported multiple times, but MS just diverts to the (totally useless) PBI Community page. If you are like me and having this issue, you may have luck with https://www.c-sharpcorner.com/article/how-to-get-access-token-for-powerbi-embedding-in-net-core/

I did not write and have no affiliation with that site - it's just the solution that worked for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fishnexj picture fishnexj  Â·  4Comments

Pacoup picture Pacoup  Â·  5Comments

tofu001 picture tofu001  Â·  6Comments

louissalome picture louissalome  Â·  6Comments

fimiki picture fimiki  Â·  6Comments