Authenticating OAuth 2.0 for outgoing web requests in Jira Automation rules

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

robotsnoindex


プラットフォームについて: Cloud、Server、および Data Center - この記事はすべてのプラットフォームに等しく適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

ソリューション

You'll need two specific outgoing web requests to authenticate over OAuth- the first request will generate a token that's used in the second request in order to obtain the credentials needed for subsequent web requests.

 
First request

Common values for the Content-Type header are application/x-www-form-urlencoded ( shown below ) or application/json


Second request

Set the value for the Authorization header to Bearer {{webhookResponse.body.access_token}} as shown below. You may need to include additional values in the form body as well.


Values provided in the webhook body are not HTML URL encoded. If a value contains a special character, $ for example, it is sent as-is instead of its HTML URL encoded equivalent of %24. If authentication is failing unexpectedly, convert special characters in values to their HTML URL encoded equivalent

最終更新日 2024 年 6 月 3 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.