With the help of the following example, I can acquire the authentication token with Windows user or M-files user:
http://www.m-files.com/mfws/gettingstarted.html
var getToken = function (username, password, vault) {
// Request an encrypted token with the login information.
$.ajax({
url: "example.org/.../authenticationtokens.aspx",
type: "POST",
dataType: "json",
contentType: "application/json",
data: JSON.stringify({ Username: username, Password: password, VaultGuid: vault }),
success: processToken
});
};
var processToken = function (token) {
// Set the header.
$.ajaxSetup({ headers: { "X-Authentication" : token.Value } });
};
Now, M-files 10 allows authentication with Windows SSO. I'd like to know how to use Windows SSO authentication to acquire the authentication token and how to use it automatically?
Thanks a lot.