Control the WS-FEDERATION authentication flow in an ASP.NET CORE application

Emmanuel Nguema Oyono 0 Puntos de reputación
2023-12-13T15:23:44.21+00:00

am learning how to authenticate users in ADFS using ws-federation. For this I already have ADFS, AD DS and IIS operating.

Now, following the Microsoft documentation this is how my program.cs file is configured and the authentication works.

builder.Services.AddAuthentication(sharedOptions =>
 {
     sharedOptions.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
     sharedOptions.DefaultChallengeScheme = WsFederationDefaults.AuthenticationScheme;
 }).AddWsFederation(options =>
 {
     options.Wtrealm = "https://localhost:7114/";
     options.MetadataAddress = "https://myServer/FederationMetadata/2007-06/FederationMetadata.xml";

 }).AddCookie();

My difficulty is; I would like to control the authentication flow from my asp.net core application but so far I cannot find documentation that can guide me. Could someone give me some clues in this sense? Thank you.

ASP.NET
ASP.NET
Conjunto de tecnologías de .NET Framework para la creación de aplicaciones y servicios web XML.
29 preguntas
Windows Server
Windows Server
Familia de sistemas operativos de servidor de Microsoft que admiten administración de nivel empresarial, almacenamiento de datos, aplicaciones y comunicaciones.
109 preguntas
0 comentarios No hay comentarios
{count} votos