forked from auth0/node-saml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
56 lines (52 loc) · 1.86 KB
/
index.d.ts
File metadata and controls
56 lines (52 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* Interface for lib/saml (Banno/node-saml). It differs from the original
* designed for auth0/node-saml to include the enhancements for supporting
* a full SAML 2.0 Response in all signing modes.
*/
declare module '@banno/saml' {
export interface SamlAttributes {
[key: string]: string;
}
export interface KeyInfoProvider {
getKeyInfo(key: string, prefix: string): string;
}
export interface SamlOpts {
authnContextClassRef?: string;
attributes?: SamlAttributes;
audiences?: string | string[];
cert: Buffer;
digestAlgorithm?: string;
encryptionAlgorithm?: string;
encryptionCert?: Buffer;
encryptionPublicKey?: Buffer;
holderOfKeyProofSecret?: string;
includeAttributeNameFormat?: boolean;
inResponseTo?: string;
issuer?: string;
key: Buffer;
keyEncryptionAlgorighm?: string; // sic https://github.com/auth0/node-xml-encryption/issues/17
keyInfoProvider?: KeyInfoProvider;
lifetimeInSeconds?: number;
nameIdentifier?: string;
nameIdentifierFormat?: string;
prefix?: string;
recipient?: string;
sessionIndex?: string;
signatureAlgorithm?: string;
signatureNamespacePrefix?: string;
subjectConfirmationMethod?: string;
typedAttributes?: boolean;
uid?: string;
responseUid?: string;
xpathToNodeBeforeSignature?: string;
createSignedSamlResponse?: boolean;
responseSigningLevel?: string;
destination?: string;
}
export namespace Saml11 {
function create(opts: SamlOpts, cb?: (err: Error | null, result: any[], proofSecret: Buffer) => void): any;
}
export namespace Saml20 {
function create(opts: SamlOpts, cb?: (err: Error | null, signed: string) => void): any;
}
}