Getting OAuth Client Id in Request Header Transform

Hi All,

I am planning to use Tyk with Tyk OAuth Flow (// for my APIs authentication process. I also would like to transform my APIs request header so that it includes the OAuth Client Id.
In the request header transformation, is it possible to access the OAuth Client Id through something like the context variable e.g. $tyk_meta.oauth_client_id or $tyk_context.oauth_client_id?


Yes, it is accessible through the $tyk_meta.ClientID variable :slight_smile:



Thanks for the information. Unfortunately, the solution that you have mentioned seems to work only for OpenID Connect, as I find it not working after I tried it in my setup which is using Tyk as OAuth2 authorization server. I think I will stick with a Javascript middleware to add the OAuth Client Id in the header for the moment.