API Authentication methods
There a few options for authenticating against the M&M API:
Login command
This method is available in all versions of M&M, and all the different flavors of the M&M API (SOAP/JSON-RPC/REST). In the REST API, this command is available via the URL commands/Login
The Login command takes in server (for the M&M Central server), user name, and password, and returns a session ID, which should then be used for all other API calls via their session parameter.
The Login command and its parameters is fully documented in the normal SOAP API documentation
Note
Remember to configure HTTPS for the mmws and/or _mmwebext sites for this authentication method
Single Sign-On
When using M&M Web Services as an API endpoint, refer to the Negotiate header Authorization section above.
When using the M&M Web Extension that comes with the M&M Web Interface as an API endpoint, single sign-on is achieved by invoking a POST http request to
http://<web server>/_mmwebext/mmwebext.dll?RequestSSO
The body of the http request should include simply the M&M Central server name.
If IIS is correctly configured (see disable-kernel-mode-auth), this request will return an XML similar to what the Login SOAP command would return:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<LoginResponse xmlns="http://menandmice.com/webservices/">
<session>UzL9uSNNcLjmlRx1PQsP</session>
<userName>mydomain\myuser</userName>
</LoginResponse>
</soap:Body>
</soap:Envelope>
The session should then be used for all subsequent API commands.