Yume
Yume
CC#
Created by Yume on 8/7/2023 in #help
❔ ASP.NET MVC: Object reference not set to an instance of an object
10 replies
CC#
Created by Yume on 7/12/2023 in #help
❔ 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