Questions tagged [microsoft.identity.web]
27 questions
0
votes
1 answer
TypeLoadException when trying to UnitTest Azure Function with Microsoft.Identity.Web
I am trying to UnitTest an Azure Function that reads a parameter directly from the querystring
[FunctionName("GetEntityId")]
public async Task GetEntityId(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "entityid")]…

Pat Long - Munkii Yebee
- 3,592
- 2
- 34
- 68
0
votes
0 answers
Microsoft.Identity.Web with Graph and Graphbeta in Parallell
I am working on a asp.net core MVC project and want to use Graph and GrahBeta packages
using Microsoft.Identity.Web.MicrosoftGraph adn Microsoft.Identity.Web.MicrosoftGraphBeta.
I define an external alias for the beta version of the package as…

Agyss
- 160
- 1
- 15
0
votes
0 answers
How to silently renew Id Token using AddMicrosoftIdentityWebAppAuthentication to Call Downstream API
I am trying to implement the BFF-Gateway pattern (no tokens in the browser) to be used with a React SPA. The BFF is using AddMicrosoftIdentityWebAppAuthentication to handle login and issue a cookie to the SPA. And it is using YARP to proxy api…

Matthew S
- 900
- 3
- 12
- 26
0
votes
0 answers
AuthorizeForScopes 'x-ReturnUrl' not being redirected to - MsalUiRequiredException
In Microsoft.Identity.Web I am using the [AuthorizeForScopes(ScopeKeySection = "Azure:Scope")] attribute to for incremental consent.
Because I am calling the decorated controller with an Ajax request upon erroring with a MsalUiRequiredException a…

user3667111
- 611
- 6
- 21
0
votes
0 answers
Properly Authorizing/Protecting Signalr Core Hub
I am trying to setup Blazor Server with a Signal R Core hub using Azure SignalR Services.
In general the Blazor app is working fine and is using Azure SignalR Services.
The Signal R Core Hub will work if I decorate it using [AllowAnonymous]. If I…

jassent
- 529
- 3
- 10
0
votes
1 answer
OnTokenValidated event not triggered
What I'm trying to do is add a claim after authentication. The following example of triggering an OnTokenValidation event not actually working.
I'm using Microsoft.Identity.Web to authenticate on Azure AD. That part works! How can I register events…

Md Arefin
- 3
- 3
0
votes
1 answer
How to configure multiple B2C policies with Microsoft.Identity.Web?
I want my application to accept signins from two different B2C user flows, using the same tenant and app registration. In other words, I want both of these links to allow me to sign in to my…

0xFF
- 808
- 1
- 12
- 33
0
votes
2 answers
How to call Microsoft Graph in a dotnet core app with multiple scopes and auth types
I'm attempting to build an application that can read from Microsoft Graph both as the user and as the application. For example, I need to call https://graph.microsoft.com/beta/me/calendar/events as the logged in user to get their events for the day.…

Randy Slavey
- 544
- 4
- 19
0
votes
0 answers
How to handle System.PlatformNotSupportedException in C#
First of all, a newbie to C# & Vb.net development.
While am trying to connect to an exchange server am getting the below error.
System.PlatformNotSupportedException
HResult=0x80131539
Message=Confidential Client flows are not available on…

Aaditya R Krishnan
- 495
- 1
- 10
- 31
0
votes
2 answers
Securing ASPNET Core Web API for calls from Azure Function
We have an exisiting ASP.NET Core Web Api in Azure that has endpoints that support Azure AD and Azure AD secured users
I want to create a new Azure Function with a Timed trigger that will call this same Web Api. The call will obviously not be in the…

Pat Long - Munkii Yebee
- 3,592
- 2
- 34
- 68
0
votes
0 answers
Passing State and Other Attributes at Login Using Microsoft.Identity.Web
I'm having troubles getting the .NET Core 6.0 authentication libraries working as I did with prior versions of .NET Framework. Specifically, I'm using Microsoft.Identity.Web, but have not figured out how to get the scope and state parameters passed…

Steve Peschka
- 1,015
- 11
- 25
0
votes
1 answer
MsalClientException IDW10104 from GetAccessTokenForAppAsync
I have an ASP.NET Core Web API set up as App Service in Azure with an App Registration in our AzureAd
In appsettings.json I have (anonimized)
"AzureAd": {
"Instance": "https://login.microsoftonline.com/",
"Domain": "ourdomain.co.uk",
…

Pat Long - Munkii Yebee
- 3,592
- 2
- 34
- 68