Overview
Postman is a great tool for testing different REST API features. Our Postman collection offers many ready-made samples for different purposes.
https://developer.m-files.com/APIs/REST-API/Useful-Applications/
We have an example for REST Single Sign-on for C# in our developer portal. The idea of this article is to illustrate how that sample can be tested with Postman.
https://developer.m-files.com/APIs/REST-API/Authentication/Single-Sign-On/
Solution
We start by creating a new POST request in Postman.
Then navigate to the Authorization tab and for Type choose NTLM Authentication. Input username and password for SSO.
(The Authorization is equivalent to the "DefaultNetworkCredentials" defined in the C# sample.)
For the request URL we set:
"{vault DNS}/WebServiceSSO.aspx?popup=1&vault={vaultGuid}"
Test the request. Status 200 OK and a cookie returned indicates a successful test. Postman sets the returned cookie automatically.
You can view the cookie in the Manage Cookies window (opened from top right, under Send). Now that the cookie is set, it will be relayed in subsequent calls.
To verify the cookie now allows you to make requests (without an X-Authentication header, the token-based authentication) you can try to make a GET request "{vault DNS}/REST/session/vaults"
