Use ExternalAccessToken to call Target Endpoint

I am able to get access_token(ExternalAccessToken) from external server.

I did a service callout, then extract variable and then Assign Message policy to derive the access token. For this I created a proxy(Say Proxy1)

Now I need to call a target endpoint which will give me data. What are the steps I need to follow ?

Do I need to create a new proxy(say Proxy2) ?

If yes, then how do I pass access_token from Proxy1 to Proxy2 and how/where can I specify relation between Proxy1 and Proxy2 ?

0 3 191
3 REPLIES 3

Not applicable

Once you get the token, you need to send the request to the api 2 for service response and your token will be a bearer token in Authentication header.

You need to store the token in Apigee to get that verified in Apigee.

Again you need to validate that token in the proxy 2.

Proxy 1 and 2 will be bundle in same product and app.

Hi Pravin,

Is your query resolved.We wanted to generate token at external system by sending client credentials.

COuld you please share any sample proxy to do that?

Thanks!

Hi Bhavani,

Let me know your exact requirement.

In our case, we have workday as our target application which has its own clientID, Client Secret and refresh token. We use these clientID, Client Secret and refresh token in Apigee to generate the access token. We then use this access token to fetch data from Workday. Let me know if you need more information.