sso
This commit is contained in:
parent
029fe23657
commit
1876580d86
911 changed files with 160008 additions and 2 deletions
21
node_modules/passport-saml/lib/node-saml/xml.d.ts
generated
vendored
Normal file
21
node_modules/passport-saml/lib/node-saml/xml.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/// <reference types="node" />
|
||||
import { SamlSigningOptions } from "./types";
|
||||
export declare const xpath: {
|
||||
selectAttributes: (node: Node, xpath: string) => Attr[];
|
||||
selectElements: (node: Node, xpath: string) => Element[];
|
||||
};
|
||||
export declare const decryptXml: (xml: string, decryptionKey: string | Buffer) => Promise<string>;
|
||||
/**
|
||||
* This function checks that the |signature| is signed with a given |cert|.
|
||||
*/
|
||||
export declare const validateXmlSignatureForCert: (signature: Node, certPem: string, fullXml: string, currentNode: Element) => boolean;
|
||||
interface XmlSignatureLocation {
|
||||
reference: string;
|
||||
action: "append" | "prepend" | "before" | "after";
|
||||
}
|
||||
export declare const signXml: (xml: string, xpath: string, location: XmlSignatureLocation, options: SamlSigningOptions) => string;
|
||||
export declare const parseDomFromString: (xml: string) => Document;
|
||||
export declare const parseXml2JsFromString: (xml: string | Buffer) => Promise<any>;
|
||||
export declare const buildXml2JsObject: (rootName: string, xml: any) => string;
|
||||
export declare const buildXmlBuilderObject: (xml: Record<string, any>, pretty: boolean) => string;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue