Ask a question
Fuel your AI at the ultimate IBM learning event
IBM TechXchange Conference October 21-24, 2024 Mandalay Bay - Las Vegas
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