Installation
npm install --save @types/saml20
Summary
This package contains type definitions for saml20 (https://github.com/leandrob/saml20).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/saml20.
index.d.ts
export interface Profile {
issuer: string;
claims: any;
audience?: string | undefined;
sessionIndex?: string | undefined; // only SAML 2.0
}
export type ValidationOptions = ValidationOptionsWithKey | ValidationOptionsWithPrint;
export interface ValidationOptionsWithKey {
publicKey: string;
bypassExpiration?: boolean | undefined;
audience?: any;
}
export interface ValidationOptionsWithPrint {
thumbprint: string;
bypassExpiration?: boolean | undefined;
audience?: any;
}
export type ParseCallback = (err: Error | null, profile: Profile, version: string) => void;
export function parse(rawAssertion: string, cb: ParseCallback): void;
export function validate(rawAssertion: string, options: ValidationOptions, cb: ParseCallback): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Jan Petzold.