I have a custom authorization server and application set up and it generates an access token, and I want to add a header field “typ”: “JWT” as well as a “jku” header field to the access token I generate. I know it’s not possible to do so in an ID token, but is it possible for a access token?
If these are custom values you want, you can add them as “claims” in you authorization server with a static value.
You can follow this document to add custom claims in either access token or ID token. → Create an authorization server | Okta Developer
1 Like
Thanks! I tried adding custom claims and it added it to the payload of the token. Is it possible to add claims to the header of the token?
Unfortunately, it is not possible to add custom claims to the header of tokens issued by Okta’s authorization servers. Okta only allows customizing the payload (claims) of tokens, not the headers.
2 Likes
Got it thank you for the help!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.