UNPKG

@kilterset/auth0-actions-testing

Version:

Test and develop Auth0 Actions or Okta CIC Actions locally.

55 lines 2.37 kB
type SamlAttributeValue = string | number | boolean | null | Array<string | number | boolean>; interface SamlResponseState { attributes: Record<string, SamlAttributeValue>; createUpnClaim: boolean; passthroughClaimsWithNoMapping: boolean; mapUnknownClaimsAsIs: boolean; mapIdentities: boolean; signResponse: boolean; lifetimeInSeconds: number; nameIdentifierFormat: string; nameIdentifierProbes: string[]; authnContextClassRef: string; includeAttributeNameFormat: boolean; typedAttributes: boolean; audience: string; recipient: string; destination: string; cert?: string; encryptionCert?: string; encryptionPublicKey?: string; key?: string; signingCert?: string; } interface SamlResponse { setAttribute(attribute: string, value: string | number | boolean | null | (string | number | boolean)[]): void; setAudience(audience: string): void; setRecipient(recipient: string): void; setCreateUpnClaim(createUpnClaim: boolean): void; setPassthroughClaimsWithNoMapping(passthroughClaimsWithNoMapping: boolean): void; setMapUnknownClaimsAsIs(mapUnknownClaimsAsIs: boolean): void; setMapIdentities(mapIdentities: boolean): void; setSignatureAlgorithm(signatureAlgorithm: "rsa-sha256"): void; setSignatureAlgorithm(signatureAlgorithm: "rsa-sha1"): void; setDigestAlgorithm(digestAlgorithm: "sha256"): void; setDigestAlgorithm(digestAlgorithm: "sha1"): void; setDestination(destination: string): void; setLifetimeInSeconds(lifetimeInSeconds: number): void; setSignResponse(signResponse: boolean): void; setNameIdentifierFormat(nameIdentifierFormat: string): void; setNameIdentifierProbes(nameIdentifierProbes: string[]): void; setAuthnContextClassRef(authnContextClassRef: string): void; setSigningCert(signingCert: string): void; setIncludeAttributeNameFormat(includeAttributeNameFormat: boolean): void; setTypedAttributes(typedAttributes: boolean): void; setEncryptionCert(encryptionCert: string): void; setEncryptionPublicKey(encryptionPublicKey: string): void; setCert(cert: string): void; setKey(key: string): void; } export declare function samlResponseMock(flow: string): { state: SamlResponseState; build: <T>(api: T) => SamlResponse; }; export {}; //# sourceMappingURL=saml-response.d.ts.map