Access Rest with JWT token

Hi everyone,

Am learning JWT in webMethod, previously I have completed a POC on generating and verifying JWT token with built-in services pub:jwt:generateSignedJWT & pub:jwt:verifyJWT.

I have exposed Flow-Service as Rest I want to access that Rest service using JWT token.

Firstly guide me if we can do that using JWT token and secondly please refer any material of guide for accessing Rest Api (Flow Service Expose as Rest).

Regards
M.Haseeb

The Authorization header must be set to Bearer , in the credentials being passed.
This can be done in the client, for example setting it in the headers input of the pub.client:http invocation or if you are using any other client, just ensuring that the HTTP request headers include
Authorization-> Bearer jwt , should also work.

-NP

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.