sso
This commit is contained in:
parent
029fe23657
commit
1876580d86
911 changed files with 160008 additions and 2 deletions
15
node_modules/passport-saml/lib/node-saml/saml-post-signing.js
generated
vendored
Normal file
15
node_modules/passport-saml/lib/node-saml/saml-post-signing.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.signAuthnRequestPost = exports.signSamlPost = void 0;
|
||||
const xml_1 = require("./xml");
|
||||
const authnRequestXPath = '/*[local-name(.)="AuthnRequest" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]';
|
||||
const issuerXPath = '/*[local-name(.)="Issuer" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:assertion"]';
|
||||
function signSamlPost(samlMessage, xpath, options) {
|
||||
return xml_1.signXml(samlMessage, xpath, { reference: xpath + issuerXPath, action: "after" }, options);
|
||||
}
|
||||
exports.signSamlPost = signSamlPost;
|
||||
function signAuthnRequestPost(authnRequest, options) {
|
||||
return signSamlPost(authnRequest, authnRequestXPath, options);
|
||||
}
|
||||
exports.signAuthnRequestPost = signAuthnRequestPost;
|
||||
//# sourceMappingURL=saml-post-signing.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue