Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Need to assign a header variable from request to Json body

Hi ,

I have 2 header parameters from the request,

email and name - apigee.developer.email and apigee.developer.name

This value of email & name needs to be mapped to variables defined within jwt.claims

jwt.claims = {"sub": <apigee.developer.name>, "email": <apigee.developer.email>}

How do I map these headers params to "sub" and "email" in the above jwt.claims variable.

for ex: email = John.Doe@xxx.com and name = John Doe from the request

then., jwt.claims should be {"sub":"John Doe","email":"John.Doe@xxx.com"}

Could you please help?

0 1 322
1 REPLY 1
Top Solution Authors