enguema
enguema

Reputation: 1

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

I 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.

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.

Upvotes: 0

Views: 560

Answers (0)

Related Questions