Skip to content

Commit

Permalink
add optional requestContext to generate the request xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Jun 16, 2014
1 parent 6c40c68 commit 0aad2de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/passport-wsfed-saml2/samlp.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Samlp.prototype = {
AssertServiceURLAndDestination: assert_and_destination
};

if (options.requestContext) {
model = xtend(model, options.requestContext);
}

var SAMLRequest = trimXml(!options.requestTemplate ? templates.samlrequest(model) : supplant(options.requestTemplate, model));

if (options.deflate) {
Expand Down

0 comments on commit 0aad2de

Please sign in to comment.