Blasor + Windows Identity frame Azure AD + Entity Framework imperonate Azure DB access

Mr T 1 Reputation point
2021-05-31T12:11:55.607+00:00

Hi!

I have serious problems to find and get a simple example for (as I thought a standard pattern);

  1. Start a new Blazor Server APP projekt, where I selected Windows Identity, to us a specific Azure AD tenant.
  2. In the default project get the data from an Azure SQL Database, by Entity Framework.
  3. The database + Blazor Server App is set up to impersonate the user.
  4. When the Blasor Server App is used, the user logins.

The problem is that the Entity Framework Core, wants its own login, and splash the Microsoft login page again (when I run locally)!
I would like to "pass" the already don login for the Blaser Server App, down to the Entity Frame work Core DatabaseContext object..

How di I do that, so I don't get the extra login?

I have search but not find an example (that works) for Latest Visual Studio 2019 and Blazor Server App.

An anser would help an old designer to get peace at work... :-)

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
698 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zsu Tit 0 Reputation points
    2023-04-12T13:19:59.98+00:00

    xebibuhy@dropjar.com

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.