REST auth in Postman
-
I'm trying to use Postman to test out these REST calls to XO and am having trouble setting up the authentication token cookie.
This works in the command line:
curl -b authenticationToken=IJqaWKJGHL9pHv64lRLa-5QH-xG-YC9wzctfv3rypm4 https://server.company.name/rest/v0/vmsBut in Postman I keep geeting 401 Unauthorized. So it seems I'm not setting up the token cookie correctly.
The format of the cookie text correct? And/or what should be used for the domain? Or do i put the ip of the xo server there? Path? I've tried a lot of variations, but still no luck.
Thanks,
jonathan -
This is how I setup my Postman --
This is on the root folder, and Auth Type for all requests are set to Inherit auth from parent.
{{token}}
is an environmental variable, so it can easily be updated in a single location. Also, this allows you to easily switch environments to go from XOA, XO from sources, etc.HTH, Dan
-
@Danp Yup, that will do it. Thanks. No longer pulling out my hair.
-
-