Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
In this tutorial you will be learning how to request for JWT token to try out an JWT protected API from webMethods Developer Portal try out page.
The tutorial assumes that the reader has:
In this tutorial the basic details of how to setup API Gateway as JWT Generator & Validator will be covered. But for more details you could refer the following tutorial JWT in API Gateway
The JWT token request by default could be invoked via https only. To ensure https port is enabled go to Administration → Security → Ports
Let me import an API to get latest bitcoin price
Edit an API in API Gateway. Click Edit. Click Identity and Access management. Click Identify and authenticate icon. Tick JWT. This procedure will enforce JWT authorization for this service.
JWT can be used only if the https enabled for the service, to do that select https in Transport level policy
Then Activate an API
Go to Administration → Destinations → API Portal → Configurations. Provide the webMethods Developer Portal communication details and Publish. Note the JWT token request would work only on top of https connection. So ensure you provided https URL of API Gateway
Next publish an API, ensure you have published https endpoint
Login to webMethods Developer Portal. You must be seeing the published API. Click the API. Click consume button to request new application
The request would create an Application in API Gateway and the credentials would be shared to webMethods Developer Portal
Now we have an Application, to request JWT token go to tryout page of an API and select an Application,
Click ‘+’ button. Provide username and password and then Get token
Now you will be able to view the token in webMethods Developer Portal. Now if you hit the send button you will be able to access the API