I am using rest api to create a subscription in Jira https://api.atlassian.com/ex/jira/<cloudId>/rest/api/2/webhook with payload:
Hi ,
Its documented that if you have created a subscription for Jira webhook using v2 version of rest api url (https://api.atlassian.com/ex/jira/<cloudId>/rest/api/2/webhook)then to authenticate received webhook event you will need your user's client secret.https://developer.atlassian.com/cloud/jira/platform/webhooks/#registering-a-webhook-using-the-rest-api--for-connect-and-oauth-2-0-apps-
I used below java code snippet to validate
import io.jsonwebtoken.Claims;import io.jsonwebtoken.Jwts;class Main{public boolean verify(String jwtToken, String clientSecret){claims = Jwts.parser().setSigningKey(clientSecret.getBytes()).parseClaimsJws(jwtToken).getBody();}}
It looks like you're new here. Sign in or register to get started.