identity if proxy is running in platform apigee Edge

Hi all,

Just want to throw this in the cloud.

Is there a way to identify if a proxy is running in platform apigee Edge or X?
For the purpose of utilizing the information for a conditional logic.

Tried to go through the flow variables docs. There is a flow variable for system host name but there seems to be none for platform (ex. if apigee Edge or X). I suppose there was never a use case for this information.

Regards,
Terence

0 1 68
1 REPLY 1

Possible Option:
Adding custom attributes in the access token during OAuthV2 token generation.
ref - https://docs.apigee.com/api-platform/security/oauth/customizing-access-tokens

proposed implementation:
1. during OAuthV2 token generation step in Apigee Edge, inject custom attribute value as "Apigee Edge"
-though this means, this step must be applied separately in Edge and X
-and that there will be a different version of the proxy that includes the OAuthV2 token generation step
2. after accesstoken verification step, the custom attribute can then be utilized as any other variable for the required conditional logic

 

Any feedback or a different approach suggestion would be much appreciated