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?
EDP now automatically adds the applicationID by default in the session metadata when the key is created.
Application name is not supported though. To access this in a custom middleware you need to fetch it by making a request to EDP API using the app ID: Get an application's data - Tyk Documentation
Can you provide your use case why you want to use application name in the middleware please?