Layer7 API Management

  • 1.  Decode Json Web Token Assertion

    Posted Oct 12, 2017 07:59 AM

    Hi

     

    I am trying to decode json web token (which I am getting in request) using Decode Json Web Token Assertion (using the same key with which it was encoded), but I am getting below error:-

     

    Invalid key usage: Certificate key usage or extended key usage disallowed by key usage enforcement policy for activity: verifyXml. 

     

    Can you please let me know what am I doing wrong?



  • 2.  Re: Decode Json Web Token Assertion

    Posted Oct 12, 2017 08:43 AM

    Hi Vivek,

     

    Here is a technical solution with an example of a policy that explains how to encode/decode json web token.

     

    https://support.ca.com/us/knowledge-base-articles.TEC1767959.html

     

    Regards

    Seenu Mathew



  • 3.  Re: Decode Json Web Token Assertion

    Posted Oct 13, 2017 08:03 AM

    Hi Seenu,

    This is an example for encoding Json Web Token, but I am facing issues in decoding Json Web Token.



  • 4.  Re: Decode Json Web Token Assertion

    Posted Oct 13, 2017 08:36 AM

    Hi Vivek,

    The example policy explains how to encode and decode the json web token

     

    Regards

    Seenu Mathew



  • 5.  Re: Decode Json Web Token Assertion
    Best Answer

    Posted Oct 13, 2017 08:37 AM

    Hi Vivek, 

     

    Please check the below community query on the same error but not JWT decode. I think you can try with the suggestions mentioned by Stephen in the resolution. 

    Certificate Key Usage or Extended Key Usage Disallowed 

     

    Thanks and Regards, 

    Atul