DefinitelyTyped/types/sasl-external/index.d.ts
2018-12-05 08:47:52 +01:00

30 lines
744 B
TypeScript

// Type definitions for sasl-external 0.1
// Project: https://github.com/jaredhanson/js-sasl-external
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Mechanism } from 'saslmechanisms';
export = ExternalMechanism;
declare class ExternalMechanism implements Mechanism {
static Mechanism: typeof ExternalMechanism;
static prototype: {
name: 'EXTERNAL';
clientFirst: true;
};
name: 'EXTERNAL';
clientFirst: true;
response(cred: ExternalMechanism.Credentials): string;
challenge(chal: string): void;
}
declare namespace ExternalMechanism {
interface Credentials {
authzid?: string;
}
}