I’m using Tyk and would like to add custom application information, such as the application name, to the metadata. I need this information to verify some business logic in the middleware.
Is it possible to add or access the application name directly in the middleware without making an extra call to the Tyk API?
Does Tyk support this kind of setup?
I’m using Tyk with the Enterprise Developer Portal, and I’m trying to include some custom application info—specifically the application name—in the session metadata when a key is generated.
The reason I want to do this is so I can access that info in a middleware plugin to handle some business logic, without needing to make an extra call to the Tyk API.
I’ve looked through the docs and examples like tyk-grpc-go-basicauth-jwt, but I couldn’t find a clear way to automatically include app-level metadata like the application name when a key is created through the Developer Portal.
So I’m wondering:
Is there a way to have the application name automatically added to the session metadata when the key is created?
If not directly supported, is there a recommended workaround—maybe using custom templates or hooks?