I would like to add some metadata to the token created on a successful login (regardless of auth system used)
Is it possible to specify a template to the token similar to policy templates ?
Another thought I had would be to create a token using the token received from login and pass metadata in that way - however then I’d have 2 tokens for the same login.
I could set num-uses to 1 on the original token, but would that invalidate the “child” token when it’s used up ?
Another option (I think) would be to use revoke-orphan, but that would mean that the initial token could, in theory, be used to revoke any other token - why isn’t there a revoke-orphan-self ? )
A third option would be to use the /auth/token/create-orphan endpoint and then revoke the original.
Thoughts ?