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)?