UserInfo endpoint does not output StringCollection claims correctly
Craig Evans
6
Reputation points
I have implemented a UserInfo Endpoint for a RelyingParty in my B2C Tenant. The string claims output correctly, but the StringCollection claims are issued as System.Collections.Generic.List1[System.String]
It's not possible to output a JSON array using string transformations. The best I can do is something like this: "groups": "[\"group1\","\group2\"]"
Obviously this won't work with the relying party. According to https://github.com/MicrosoftDocs/azure-docs/issues/75344 this was fixed/closed over a year ago, but it was never actually fixed.