landstrasse
Version:
Strongly typed WAMP Client for browsers
38 lines • 1.07 kB
JavaScript
class AbstractAuthProvider {
/**
* Creates a new instance.
*
* @param authId - The username to send to the server
* @param authMethod - The authmethod to send to the server
*/
constructor(authId, authMethod) {
Object.defineProperty(this, "_authId", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "_authMethod", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._authId = authId;
this._authMethod = authMethod;
}
/** @inheritDoc */
get authId() {
return this._authId;
}
/** @inheritDoc */
get authMethod() {
return this._authMethod;
}
/** @inheritDoc */
computeChallenge(_) {
return Promise.reject('Challenge computing is not supported by the auth provider.');
}
}
export default AbstractAuthProvider;
//# sourceMappingURL=AbstractAuthProvider.js.map