landstrasse
Version:
Strongly typed WAMP Client for browsers
28 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const AbstractAuthProvider_1 = require("./AbstractAuthProvider");
/**
* TLS Client Certificate authentication provider.
*
* Providing an instance of this class means that the client thinks
* that it is already authenticated by presenting a TLS client cert on the
* transport level.
*/
class TLSAuthProvider extends AbstractAuthProvider_1.default {
get isTransportLevel() {
return true;
}
/**
* Creates a new instance of the TLS auth provider.
*
* @param authId - Username to login as. A certificate might permit logging
* in to several user names, so present one here.
* It might be changed by the server, so that's possibly only a 'hint'.
* (default: '')
*/
constructor(authId) {
super(authId !== null && authId !== void 0 ? authId : '', 'tls');
}
}
exports.default = TLSAuthProvider;
//# sourceMappingURL=TLS.js.map