Skip to content

Commit

Permalink
Adding default for options.logoutUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Jurista committed Jan 15, 2015
1 parent 356ee82 commit 42457e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/passport-saml/saml.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ SAML.prototype.initialize = function (options) {
options.cacheProvider = new InMemoryCacheProvider(
{keyExpirationPeriodMs: options.requestIdExpirationPeriodMs });
}

if (!options.logoutUrl) {
// Default to Entry Point
options.logoutUrl = options.entryPoint || '';
}

return options;
};
Expand Down

0 comments on commit 42457e2

Please sign in to comment.