npm.io
0.1.3 • Published 2 years ago

@types/saml20

Licence
MIT
Version
0.1.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Jan Petzold.