We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Password length not accepting in Basic AuthCode

surbhi_123
Tera Expert

I have to integrate ServiceNow and Jira and for that I am using basic authentication. In that the length of API Token from Jira is very large and is not accepting by ServiceNow . It shows the error message as follows -

surbhi_123_0-1679998152588.png

 

7 REPLIES 7

raja_5
Tera Expert

@surbhi_123 

 

I have the changed the length to 500 and tried and it worked for me jira int.PNG

allthethings
Tera Contributor

Also change the sys_auth_profile_basic table's password length to 512. This is what finally worked for me when configuring an Outbound REST message's Basic authentication.

 

Screenshot 2025-09-15 at 12.18.35 PM.png

NityaB161013953
Mega Patron

Hi @surbhi_123 ,

Options to fix

1. Use “Basic Auth” headers directly in the REST Message (workaround)

  • Don’t save the long string in the credential record.

  • In your REST Message, set an HTTP Header:

     
    Name: Authorization Value: Basic <base64encoded(email:api_token)>
  • You can generate the Base64 string externally (or with a background script in SN) and paste it here.

2. Use “HTTP Authentication Profile – OAuth 2.0” (recommended)

  • Atlassian supports OAuth 2.0 for integrations.

  • This avoids token length issues, is secure, and future-proof.

3. Use Connection & Credential Aliases

  • Store the token in an encrypted field (Credential record), and reference it in your REST Message.

  • This way you don’t manually paste long strings into the REST profile.