question

MrT-3240 avatar image
0 Votes"
MrT-3240 asked

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

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
5 |1600 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.

0 Answers