Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to authenticate to external resource while using WebHook

Jamshaid
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2024

I have written an api that should work when a jira web-hook calls it with an issue id e.g., https://example.com/v1/abc/${issue-id}.

The problem here is that my API uses authentication. I can not find a direct authentication method while looking into webhooks. Is there any way I could get it working with authentication?

If I use AWS lambda, it still needs authentication. What should I do regarding this?

Thanks

1 answer

0 votes
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2024

Hi @Jamshaid ,

That depends on your API implementation. For example - in a very typical implementation - you can have your API to read in the authentication parameters from the request headers, and then input that in the web request form.

For example

Screenshot 2024-02-14 at 9.48.27 AM.png

 

Jamshaid
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2024

@Hariharan Iyer i can not find headers in webhook options

Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2024

@Jamshaid , sorry to hear that. Just to confirm, are you looking at the web hook trigger, or the send web request action? The former is an incoming request for when to run an automation, while the latter is an outgoing request that can be run as part of an automation. Can you clarify which one you're interested in here as part of your workflow?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events