windows.security.authentication.web
Version:
Use the Windows.Security.Authentication.Web WinRT API directly from Node.js
66 lines (51 loc) • 1.93 kB
JavaScript
_WebAuthenticationStatus = function () {
this.success = 0;
this.userCancel = 1;
this.errorHttp = 2;
}
exports.WebAuthenticationStatus = new _WebAuthenticationStatus();
_WebAuthenticationOptions = function () {
this.none = 0;
this.silentMode = 1;
this.useTitle = 2;
this.useHttpPost = 3;
this.useCorporateNetwork = 4;
}
exports.WebAuthenticationOptions = new _WebAuthenticationOptions();
WebAuthenticationResult = (function () {
var cls = function WebAuthenticationResult() {
this.responseData = new String();
this.responseErrorDetail = new Number();
this.responseStatus = new WebAuthenticationStatus();
};
return cls;
}) ();
exports.WebAuthenticationResult = WebAuthenticationResult;
WebAuthenticationBroker = (function () {
var cls = function WebAuthenticationBroker() {
};
cls.authenticateAsync = function authenticateAsync(options, requestUri, callbackUri, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="options" type="WebAuthenticationOptions">A param.</param>
/// <param name="requestUri" type="Object">A param.</param>
/// <param name="callbackUri" type="Object">A param.</param>
/// </signature>
}
cls.authenticateAsync = function authenticateAsync(options, requestUri, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="options" type="WebAuthenticationOptions">A param.</param>
/// <param name="requestUri" type="Object">A param.</param>
/// </signature>
}
cls.getCurrentApplicationCallbackUri = function getCurrentApplicationCallbackUri() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.WebAuthenticationBroker = WebAuthenticationBroker;