Questions tagged [microsoft-identity-web]

111 questions
8
votes
3 answers

Microsoft Identity Web: Change Redirect Uri

I am using .net 5, Identity Web Ui to access Microsoft Graph. Where can I configure my Redirect URI? I need to specify the full Uri, since the generated one from callbackUri is incorrect due to being behind a Load Balancer with SSL offload. Here is…
8
votes
3 answers

How use AddMicrosoftIdentityWebApiAuthentication without appsettings section?

I am implementing an Azure Active Directory in a .NET 5 API. I currently have this API perfectly running on .NET Core 2.2. This is the old working code: services.AddAuthentication(AzureADDefaults.BearerAuthenticationScheme) …
6
votes
0 answers

Azure B2C SSO for Hosted Wasm Blazor and Classical Web Application

Is it possible to use SSO with B2C for following scenario? ASP.Net Core web app (Razor Pages) that authenticates user in a B2C tenant (local accounts). Using Microsoft.Identity.Web for…
arqe
  • 106
  • 1
  • 5
4
votes
2 answers

App Settings config section from Azure Key Vault

I'm implementing AAD authentication on a Net5 API with the new library Micorosft.Identity.Web The library exposes a method that only accepts an IConfiguration with a section that looks like below in the app.settings Authentication method from…
Aferrercrafter
  • 319
  • 1
  • 6
  • 14
3
votes
0 answers

How can I combine OpenIddict and Azure AD SSO to allow local fine-grained authorization?

I have an Angular SPA that already has an authentication/authorization system built on top of OpenIddict. It has been working just fine. We have a new client requirement to add the possibility of SSO through Azure AD (connecting to a specific…
3
votes
1 answer

Log Authentication Events with Microsoft.Identity.Web in ASP.NET Core 6.0

I'm trying to work out how to configure logging Authentication events that occur is MicrosoftIdentityWeb in ASP.NET Core 6.0 and I'm having trouble finding a simple example. My code is currently the .net60 template code, I've tried to follow…
Molloch
  • 2,261
  • 4
  • 29
  • 48
3
votes
2 answers

Include custom WWW-Authenticate header in 401 Unauthorised response when using Microsoft.Identity.Web

Following instructions on making MS Office connect to my Asp.NET Core Web API, I am attempting to present a login redirect to MS Office for failed authentications. Following questions and answers I am attempting to include the login redirect…
Superman.Lopez
  • 1,332
  • 2
  • 11
  • 38
3
votes
1 answer

Setting Different ReturnUrl in State Parameter with Microsoft.Identity.Web

I have an ASP.NET Core web app that is authenticating with Azure AD in a multi-tenant configuration using Microsoft.Identity.Web. We use a tenant/company identifier as the subdomain of our apps URL. (companyA.myapp.com, companyB.myapp.com). Some…
3
votes
0 answers

Getting System.NullReferenceException when getting calling Microsoft Graph using Microsoft.Identity.Web 1.60

I'm upgrading an application from .NET Core 2.2 to .NET 5.0. In the process I needed to update both Microsoft.Graph and Microsoft.Identity.Web. I updated to use the new configuration however when I try to get user details Graph throws…
Fernando
  • 614
  • 1
  • 9
  • 20
3
votes
1 answer

asp.net core 3.1 azure ad SSO authentication behind corporate proxy

I am trying to run an asp.net core 3.1 mvc web app that is running on a debian 10 container hosted on RHEL 7. The app is authenticating through Azure Ad OIDC SSO. the app must connect to Azure AD through a corporate proxy. I am trying to set up the…
3
votes
2 answers

Get 401 Unauthorised calling WebApi from another WebAp on behalf of api (not user)

We have a number of ASPNET Core Web Apis in Azure that we call on behalf of a User. That user has normally signed into an ASPNET Web Site, also in Azure. We are introducing an Audit Service. That feels like it should be called on behalf of the…
Pat Long - Munkii Yebee
  • 3,592
  • 2
  • 34
  • 68
2
votes
0 answers

Exchange ID token for self-signed access token in ASP.NET Core

I am using Azure AD for authentication. I am able to get an identification token and information about the user like this: // Add default authentication scheme Microsoft.AspNetCore.Authentication.AuthenticationBuilder authenticationBuilder =…
2
votes
0 answers

Microsoft Identity UI Account Controller Customization 404

I have set up a Azure B2C OpenIdConnect system for our website using Microsoft Identity Web (https://github.com/AzureAD/microsoft-identity-web}. I could sign-in and out of the system with out issue. I can still sign-in but I am unable to sign-out…
2
votes
1 answer

How do I Read/Write configuration data in Azure App Configuration from a Blazor app using the logged in user's credentials?

I am building a web portal for managing the values in some of our Azure App Configuration stores, to provide a user-friendly editor for some complex json-configuration values. I think I have all the setup required, but am only getting 401 or 403…
2
votes
1 answer

How can I authenticate a user with Azure AD without specifying the tenant and client during app startup?

I am building a web app and want users to be able to authenticate with Azure AD. The organisation I am working for has two Azure AD Tenants, and they have created an App Registration in each. Both App Registrations are set as Single Tenant not…
Tim
  • 5,435
  • 7
  • 42
  • 62
1
2 3 4 5 6 7 8