I implemented the sample solution using .NET, Okta and ITFOXTEC found here. Everything worked fine. I then tried to integrate this solution into our main codebase which is also using ASP.NET Identity. Once I added the identity configuration, it seems whatever identity that was created by ITFoxtec was overwritten (none of the SAML claims are present after login). I reproduced the issue by adding the following to the Startup.cs in the sample solution above.
services.AddDbContext<ApplicationDbContext>();
services.AddIdentity<IdentityUser, IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders();
I'm hoping to use both SAML and Identity framework in the same solution, but not sure they are compatible.