Closed this issue 5 years ago · 2 comments
Having commas in the name field result in the name being truncated. I assume this is due to the Split(',') call in the middleware.
name
Split(',')
{ "typ": "name", "val": "User, Mock" }
Results in only "User" being added to the claim as the Identity.
You mean here?
NEasyAuthMiddleware/NEasyAuthMiddleware/Mappers/StandardPrincipalClaimMapper.cs
Line 49 in 143264c
Fixed in 6a8f215
This allows customisation of the behaviour via EasyAuthOptions.ClaimTypesWithCommaSeparatedValues setting.
EasyAuthOptions.ClaimTypesWithCommaSeparatedValues