API Connect

 View Only
  • 1.  generating JWT-Token

    Posted Fri July 15, 2022 10:21 AM
    Hello,
    I want to Implement Jwt-token in API (v10) ,
    Can anyone help me out with this..

    ------------------------------
    Chetan Yelve
    ------------------------------


  • 2.  RE: generating JWT-Token
    Best Answer

    Posted Mon July 18, 2022 02:11 PM

    Yi Chetan,

    There are examples you can use as templates in store:/gatewayscript/example-jwt-create.js and store:/gatewayscript/example-jwt-validate.js.  The jose and jwt modules are in the documentation at https://www.ibm.com/docs/en/datapower-gateway/10.0.x?topic=apis-jose-module and https://www.ibm.com/docs/en/datapower-gateway/10.0.x?topic=apis-jwt-module for more information.

    As for a V10 API, you'd simply place code similar to the examples into a GatewayScript policy within the assembly.

    Regards,
    Steve



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------