public async Task<string> GenerateSerializedRstr(ValidatedWsFederationSigninRequest request)
{
var principal = request.Subject.Identity as ClaimsIdentity;
if (principal.FindFirst(ClaimTypes.NameIdentifier) == null) {
principal.AddClaim(new Claim(ClaimTypes.NameIdentifier, principal.Name));
}
.......
Name Identifier is missing in the WS Federation token, here is the XML tag:
a very fast fix:
I may create a PR with the code change