Need Help to add Basic Authentication to Action of Flow Designer.

Sunny45
Kilo Guru

Hello Experts,

I am creating a Data source through Integration hub (snap below)

I need some help on adding Basic Authentication (Username/Pwd) on REST step for Request action. (second snap)

When I create a new record for Basic Authentication, the same is not available in the drop down list. 

May be I am missing something here. 

Please advise me with all steps, how do I add Basic authentication to the REST API step of Flow Designer?

Thanks. 

find_real_file.png

 

 

find_real_file.png

 

 

find_real_file.png

 

 

1 ACCEPTED SOLUTION

You may look into below link which describes in details. Basically you will have to create credential alias sn_cicd_spoke.cicd as shown below and use that in your action of Flow designer.

 

https://community.servicenow.com/community?id=community_article&sys_id=ca12423edb1068106621d9d9689619d6

 

find_real_file.png

 

 

 

 

View solution in original post

5 REPLIES 5

Petr Pastuszek1
Tera Contributor

Hello,
I had a similar issue.
In Flow Designer, the REST Step to run REST message requires to provide connection and credential aliases as of basic authentication.
Once I have completed this step and imported REST message in REST Step, I got all the time response code 400 back.
Several hours I tried to debug and at the end I found this.

Basic authentication require user name / password
user name field is max size 40
SUpplier provided me with user name long 48 characters.
I increased field size and updated basic authentication record with the full user name again.
All started to work.

PS: What helped was to run REST via background script and than I compared HTTP outbound log with HHTP outbound log created by REST called from flow designer, string of Authentication value form HTTP header started to be the same but after 50 characters changes which helped me to understand and debug this field max size issue.

Hope this post helps to someone

/Petr