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();
}
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.