Skip to content

Commit

Permalink
Bug fixed for undefined IdP configuration (wantAuthnRequestsSigned)
Browse files Browse the repository at this point in the history
  • Loading branch information
tngan committed Oct 23, 2015
1 parent 280841c commit 077f5e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/IdPMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ module.exports = function(meta){
*/
IdPMetadata.prototype.isWantAuthnRequestsSigned = function isWantAuthnRequestsSigned(){
var was = this.meta.idpssodescriptor.wantauthnrequestssigned;
return was && was.toString() === 'true';
if(was === undefined) {
return false;
} else {
return was.toString() === 'true';
}
};
/**
* @desc Get the entity endpoint for single sign on service
Expand Down

0 comments on commit 077f5e9

Please sign in to comment.