Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to access consumer secret during flow?

Not applicable

I want to send Apigee a request with a consumer key, along with an HMAC generated with the consumer secret. I will then generate an HMAC with the consumer secret and necessary values and compare the incoming HMAC with the generated one.

Is there a policy in Apigee that will allow me to access the consumer secret based on the incoming consumer key?

Side note: I am already using the VerifyApiKey policy, however, I want to take the validation further via the HMAC with the consumer secret.

Solved Solved
0 2 299
1 ACCEPTED SOLUTION

davissean
Former Googler

Verify API Key will populate a context variable with the consumer secret.

It will be:

verifyapikey.{Verify API Key Policy Name}.client_secret

You can see it in trace. Hope this helps!

View solution in original post

2 REPLIES 2

davissean
Former Googler

Verify API Key will populate a context variable with the consumer secret.

It will be:

verifyapikey.{Verify API Key Policy Name}.client_secret

You can see it in trace. Hope this helps!

That worked, thank you very much!