Questions tagged [microsoft-identity-web]
111 questions
1
vote
1 answer
ASP.Net 5 authentication with Azure - claims seemed to have changed
Briefly
Should I be using OpenIdConnectDefaults.AuthenticationScheme when authenticating with Azure ADFS?
In more detail
I have an ASP.NET Core application that has recently been upgraded from 3.1 to .NET 5.
Previously, it had been using the…

DrGriff
- 4,394
- 9
- 43
- 92
1
vote
1 answer
How to provide login_hint to microsoft-identity-web
I'm using microsoft-identity-web (https://github.com/AzureAD/microsoft-identity-web) in combination with IdentityServer4 to enable signing into my app through identity server4 with an AAD account. Everything is just working fine.
I would like to…

Merijn
- 661
- 1
- 7
- 21
0
votes
1 answer
how I can dynamically load AzureAdB2C settings based on URL
I have an app writen in .NET CORE 6.0 What I'm trying to achive is that based on what URL is loaded
to load specific AzureAdB2C settings. I don't want to have them in appsettings.json
For ex. multiple subdomains use this app, aaaa.test.com |…

Florin Paraschivescu
- 27
- 4
0
votes
0 answers
Microsoft.AspNetCore.Identity.SignInManager.GetExternalLoginInfoAsync() returns NULL for AzureAdB2C
I have setup AzureAdB2C in my .NET Web Application (.NET 7) which is using the Microsoft AspNetCore Identity framework for user management. I followed various sites to implement the solution and came across the recommendation made by Microsoft to…

Razack Mahomed
- 21
- 4
0
votes
0 answers
Azure Ad Multi Tenancy + Multi Db scenario - How to have a Distributed Token Cache per tenant
Introduction
I'm working on migrating a single-tenant, single-db ASP.NET Core Web API project that uses Azure AD with a DistributedSqlServerCache to support a multi-tenant, multi-db approach.
Our application will support Azure AD logins from…

S. ten Brinke
- 2,557
- 4
- 25
- 50
0
votes
0 answers
YARP and Microsoft AD returns invalid_request: the provided value for the input parameter 'redirect_uri' is not valid
I am trying to get YARP and Microsoft.Identity.Web to play together.
But I am getting:
invalid_request: the provided value for the input parameter 'redirect_uri' is not valid
it works if I connect the Microsoft.Identity.Web to the api directly so it…

Jester
- 3,069
- 5
- 30
- 44
0
votes
2 answers
What are the auth links when switching from AddAzureADB2C to Microsoft.Identity.Web?
I have an API that has a simple "sign-in" link on a plain, hand-written HTML page (no razor pages, no asp pages, nothing). After I sign in, the cookie is stored so I can use the swagger UI to make simple API calls directly. This is very useful for…

David Dombrowsky
- 1,655
- 3
- 20
- 32
0
votes
0 answers
Upgrading Microsoft.Identity.Web from 1 to 2.10.0
I am upgrading my code(.net6- Razor Pages) authentication, it uses Microsoft.Identity.Web package which I want to upgrade from 1 to the latest(2.10.0). My app uses cookie authentication scheme and Azure AD.
So with Microsoft.Identity.Web v1, the…

Newbie
- 563
- 1
- 5
- 16
0
votes
1 answer
Microsoft OAuth2 /token enpoint returns error code 900144 no matter what
I'm trying to add OAuth2 ways to login to my app by following the instructions from their official docs. First step is to get the authorization code, I did it fine. However the next step doesn't work, it always gives me this error:
{
"error":…

Rafael Bordoni
- 1
- 1
0
votes
0 answers
Single tab and browser window authentication with microsoft.identity.web using blazor server
Hi I have a blazor server application which is working fine with authentication to aad using microsoft.identity.web using the following basic implementation...
builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
…

haPartnerships
- 335
- 1
- 2
- 13
0
votes
1 answer
AuthorizeForScopes for requests to another tenant
I'm working on an asp.net core mvc application which requires a user to sign in to the application registered in Tenant A as multitenant App and available in Tenant A, B and C.
Users logging in into the app in Tenant A can use the app to get…

Agyss
- 160
- 1
- 15
0
votes
1 answer
Azure App Registration using Managed Identities instead of Client Secrets
Im using the Microsoft Identity Web package latest (2.6.2) in .NET Core 7.0 to secure my front end app, which in turn calls a down stream api (API Gateway)
In order to call the downstream API, we have to configure a client secret which is stored in…

OJB1
- 2,245
- 5
- 31
- 63
0
votes
1 answer
Blazor Server with Microsoft identity - cached authentication across tabs and browsers
Sorry for the odd title - not sure how to describe it better
I have a boilerplate Blazor Server app which uses microsoft identity to successfully log people in and out.
There are some nuances that dont work for my use case and wondered if there is…

haPartnerships
- 335
- 1
- 2
- 13
0
votes
1 answer
Authorization Code Provider with Graph v5
After upgrading to MS Graph V.5, I'm trying make requests on behalf of the signed in user. as per the official documentation, this has to be using the AuthorizationCodeProvider. I keep getting the error: AADSTS500112: The reply address…

omarmallat
- 694
- 2
- 9
- 20
0
votes
1 answer
How should I create app registrations on-demand for my users in Azure B2C?
I have a simple ASPNET Core Razor Pages app + ASPNET Core API:
for example the API just has:
builder.Services
.AddAuthentication(...)
.AddMicrosoftIdentityWebApi()
Razor pages has:
builder.Services
…

Victorio Berra
- 2,760
- 2
- 28
- 53