0.1.3 • Published 6 months ago

@types/saml20 v0.1.3

Weekly downloads
772
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for saml20 0.1
// Project: https://github.com/leandrob/saml20
// Definitions by: Jan Petzold <https://github.com/HackerUndKoch>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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, 06 Jul 2021 16:34:12 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Jan Petzold.

0.1.2

7 months ago

0.1.3

6 months ago

0.1.1

3 years ago

0.1.0

7 years ago