Token metadata only after update the token

Branch/Environment/Version

  • Branch/Version: [Enterprise version from latest helm chart. (tykio/tyk-dashboard:v3.2.1)]
  • Environment: [On-prem]

Describe the bug
When i create a new JWT token, this token get the user properties like:
for example:
{
“email”: “[email protected]”,
“org_id”: “62177fa37483df0001exxxxx”,
“fields”: {
“partnerID”: “CLIP_UUID”
}
}

Then when i create the token, the token has the metadata: tyk_user_fields {“partnerID”:“CLIP_UUID”}
If i send an auth request to my API passing the header tyk_user_fields: $tyk_meta.tyk_user_fields i get .

But after update the key, for example add a new value. at the following reqeust i get the value {“partnerID”:“CLIP_UUID”}. into the header tyk_user_fields.

Headers before update the token:
Tyk_developer_id: 621938f3fd028c0001221905.
Tyk_key_request_fields: .
Tyk_user_fields: .

Headers after update the token adding a new metadata “123:123”

Tyk_developer_id: 621938f3fd028c0001221905.
Tyk_key_request_fields: {“PartnerId”:“CLIP_UUID”}.
Tyk_user_fields: {“partnerID”:“CLIP_UUID”}.

I have enable the Context Variables and this is the configuration of my headers middleware:
“global_headers”: {
“tyk_developer_id”: “$tyk_meta.tyk_developer_id”,
“tyk_key_request_fields”: “$tyk_meta.tyk_key_request_fields”,
“tyk_user_fields”: “$tyk_meta.tyk_user_fields”,
},

Hi @Cesar_Sepulveda, welcome to the community and thanks for filing a bug report. We will check on this and get back to you

Hi @Cesar_Sepulveda, could you help us out with the Api definition, key definition and curl command?