Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4010

Use Azure MFA via graph API in blazor app

$
0
0

I'm writing a blazor app which calls a web api backend. In the backend I have several calls to the graph api.

One is for example:

//User activates their eligible assignment for PIM for Groups//https://learn.microsoft.com/en-us/graph/api/privilegedaccessgroup-post-assignmentschedulerequests?view=graph-rest-1.0&tabs=csharp#example-2-user-activates-their-eligible-assignment-for-pim-for-groupsawait graphClient.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests.PostAsync(privilegedAccessGroupAssignmentScheduleRequest);

I want to activate an eligible group assignment. For the activation a conditional access is set that MFA is required. If I call this function from the App I get an error from the graph api because my application doesn't require MFA:

The configured Conditional Access authentication context c1 is notfound in any of Conditional Access policies in the tenant. Additionalverification (Azure MFA) required

How can I force the user to enter the MFA in the blazor app (if possible in webassembly)?


Viewing all articles
Browse latest Browse all 4010

Trending Articles



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