I’m using a 3rd party identity provider that is a little restrictive with adding claims to the token.
As an alternative, I’m sending a token appendix together with that 3rd party token, but the appendix is in a custom http header (not the authZ header). The token appendix contains everything I wish the 3rd party token could contain. It also has a signature like a JWT and it takes the entire 3rd party token as well as itself into account when creating this signature. Therefore, it is bound to a particular 3rd party token.
Is that a well known solution (that maybe even has a special name)? Did I just invent something?