A4J Send Web Request Authorization not working

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2024

Hi Guys,

Need your help in sending HTTP web request from A4J. I am not sure why Authorization is not working. I tried all the method like Authorization Bearer <token> or Authorization Basic <token> but for all them getting unauthorized error. Kindly suggest, same token working in postman.

Screenshot 2024-05-21 133524.pngScreenshot 2024-05-21 133942.pngScreenshot 2024-05-21 134046.png

1 answer

1 accepted

0 votes
Answer accepted
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2024

I have fixed it. 

Here is the solution : 

  • Set the Header name to Authorization.
  • Set the Header value to Basic<space><encoded_credentials>, where <encoded_credentials> is a base64-encoded string of your username:password.

To generate encoded credentials for your username and password in base64 format, you can use various methods, including online tools, command-line tools, or programming languages. Here are a few options:

  1. Go to a base64 encoder website, such as Base64 Encode.
  2. Enter your credentials in the format username:password in the input field.
  3. Click the "Encode" button.
  4. Copy the encoded string that is generated.
  5. In the Headers section, add a new header with:
    • Header name: Authorization
    • Header value: Basic dXNlcjpwYXNz (replace dXNlcjpwYXNz with your actual encoded string)

 

Suggest an answer

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

Atlassian Community Events