DevTest Workstation generate basic authorization token.
search cancel

DevTest Workstation generate basic authorization token.

book

Article ID: 231010

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

How to generate a basic authorization token in the DevTest Workstation.
This is the basic authorization token that can be used in a CURL command like: 
curl -k -X POST -H "authorization: Basic <authorization token>" -F file=<virtual service>.mar https://<registry server>:1505/api/Dcm/VSEs/VSE/actions/deployMar

Environment

Release : 10.6

Component : DevTest Workstation

Resolution

Steps to generate a basic authorization token
- In the Workstation create a test with a REST step like. There is no need to enter any details for the URL tab.

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=6dR89/YKadfaZ+1cCP5xgw==

- Under the Headers tab create a new 'Authorization' key by clicking on the +

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=/Vc29pmhDYfK1sh9NSyiYA==


- Under Key enter the word "Authorization". Then there is a popup with User ID and Password. Enter the User ID and Password that you want to use and click OK

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=Ku9mX7m1VHMILfCrD6PCBw==


- Then you should see the token value. 

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=Fyd0Pm4G+XH/Ke4nZWj+ag==


- Copy that value into the CURL command.

 

Additional Information

Other tools like Postman also have the functionality to create the basic authentication token
Another option would be to use https://www.debugbear.com/basic-auth-header-generator