[passport-saml] Add missing config options (#39224)

This commit is contained in:
Christopher Eck 2019-10-18 18:02:06 -05:00 committed by Andrew Branch
parent 2413e7242f
commit 60c7387672

View File

@ -60,6 +60,11 @@ export interface SamlConfig {
forceAuthn?: boolean;
skipRequestCompression?: boolean;
authnRequestBinding?: string;
RACComparison?: 'exact' | 'minimum' | 'maximum' | 'better';
providerName?: string;
passive?: boolean;
idpIssuer?: string;
audience?: string;
// InResponseTo Validation
validateInResponseTo?: boolean;
@ -85,18 +90,18 @@ export interface AuthorizeOptions extends AuthenticateOptions {
}
export type Profile = {
issuer?: string;
sessionIndex?: string;
nameID?: string;
nameIDFormat?: string;
nameQualifier?: string;
spNameQualifier?: string;
ID?: string;
mail?: string; // InCommon Attribute urn:oid:0.9.2342.19200300.100.1.3
email?: string; // `mail` if not present in the assertion
getAssertionXml(): string; // get the raw assertion XML
getAssertion(): object; // get the assertion XML parsed as a JavaScript object
getSamlResponseXml(): string; // get the raw SAML response XML
issuer?: string;
sessionIndex?: string;
nameID?: string;
nameIDFormat?: string;
nameQualifier?: string;
spNameQualifier?: string;
ID?: string;
mail?: string; // InCommon Attribute urn:oid:0.9.2342.19200300.100.1.3
email?: string; // `mail` if not present in the assertion
getAssertionXml(): string; // get the raw assertion XML
getAssertion(): object; // get the assertion XML parsed as a JavaScript object
getSamlResponseXml(): string; // get the raw SAML response XML
} & {
[attributeName: string]: unknown; // arbitrary `AttributeValue`s
[attributeName: string]: unknown; // arbitrary `AttributeValue`s
};