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.

-
O olivierlambert marked this topic as a question on
-
O olivierlambert has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login