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

creating your own jwk in Apigee

Hello again @dchiesa1,

I have another question: can the following process of creating an ephemeral key pair for use in DPoP JWT signing be implemented in Apigee?

Scenario: Client application generates an ephemeral (One time) keypair on each API request.

Note: Please ensure a new ephemeral keypair is generated on each request to ensure DPoP Proof is always unique per transaction.

  • Ephemeral public key (JWK)
  • Ephemeral private key

With the following information:

  • alg: ES256
  • use: sig

Thank you.

Solved Solved
5 1 212
1 ACCEPTED SOLUTION

I wrote up how to do a RFC7800 POP token using  Apigee a long while ago. 

https://www.googlecloudcommunity.com/gc/Cloud-Product-Articles/POP-Using-JWT-to-prove-possession-of-... 

and published a repo

https://github.com/DinoChiesa/Apigee-Proxy-JWT-POP

As I understand the POP flow, it is the PRESENTER  (CLIENT) that creates the  ephemeral keypair.  Then the presenter publishes the corresponding public key, to facilitate the proof-of-possession protocol.

If Apigee IS NOT acting as the presenter, then you do not need Apigee to create an ephmeral keypair.  If Apigee IS the presenter, then you DO need to do that, and I suppose if I were doing that, I would use a Java callout for that purpose.

 

View solution in original post

1 REPLY 1