Yume
❔ How to generate JSON Web Token with custom header field?
I'm using System.IdentityModel.Tokens.Jwt. So far generating the token seems easy enough but the API I'm integrating with requires a custom field in the header. How can I do this with JwtHeader class? I see a signature with "additionalInnerHeaderClaims" but it also requires an "outboundAlgorithmMap" which I don't know how to use. https://learn.microsoft.com/en-us/dotnet/api/system.identitymodel.tokens.jwt.jwtheader.-ctor?view=msal-web-dotnet-latest#system-identitymodel-tokens-jwt-jwtheader-ctor(microsoft-identitymodel-tokens-signingcredentials-system-collections-generic-idictionary((system-string-system-string))-system-string-system-collections-generic-idictionary((system-string-system-object)))
5 replies