How to define Basic Auth in survey flow Web Service | XM Community
Skip to main content
Solved

How to define Basic Auth in survey flow Web Service

  • February 17, 2021
  • 1 reply
  • 187 views

Forum|alt.badge.img+11

Dear all,

I am wondering how to pass username and password of basic authentication for web service call. I used to pass api token in the custom header but could not find a proper param to pass the basic authentication username and password within the web service.

does anyone have an idea??

Best answer by Muqaibil

Just for the others

I found the solution by passing the Authorization parameter in the header associated with the Base64 encoded of username and password as "username:password" and paste it as "Basic {Base64 encoded basic Auth}
to get the Base64 encoded token, you may use any converter tool passing the format (username:password) and encode it. there will be a long token generated which can be passed in the web service as same as the API tokens
final look of header will be:
Authorization = Basic "Base64 encoded "
Thanks..

1 reply

Forum|alt.badge.img+11
  • Author
  • Level 2 ●●
  • Answer
  • February 24, 2021

Just for the others

I found the solution by passing the Authorization parameter in the header associated with the Base64 encoded of username and password as "username:password" and paste it as "Basic {Base64 encoded basic Auth}
to get the Base64 encoded token, you may use any converter tool passing the format (username:password) and encode it. there will be a long token generated which can be passed in the web service as same as the API tokens
final look of header will be:
Authorization = Basic "Base64 encoded "
Thanks..