I have been able to integrate ItFoxtec .net core nuget into my application, it redirects and gets the appropriate SAML response back along with the claims and I used ClaimsTransform to add the claims. I can see the claims from the SAML response. However, when i inspect the User object, I do not see any claims for the user and the authentication property as well shows false.
In our application at startup, we have below block.. could this be causing the claims to be reset?
services.AddIdentity<MyUser, MyRole>(options =>
{
options.Stores.MaxLengthForKeys = 128;
options.Stores.ProtectPersonalData = true;
})
.AddEntityFrameworkStores<MyEntities>()
.AddDefaultTokenProviders()
.AddClaimsPrincipalFactory<MyClaimsIdentityFactory>()
.AddSignInManager<MySignInManager>()
.AddUserStore<MyUserStore>()
.AddUserManager<MyUserManager>()
.AddUserValidator<MyUserValidator<MyUser>>();
I saw a similar post but the solution there did not help..