Skip to content

Commit

Permalink
Better handle the errors not from Lasso
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Jan 8, 2025
1 parent 920739e commit 371eaf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pf/Authentication/Source/SAMLSource.pm
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ sub handle_response {
return ($FALSE, "Can't find username in SAML response.")
}
};
if($@){
return ($FALSE, "Can't validate Identity provider return message : ".$@->{message});
if ($@) {
my $msg = ref($@) ? $@->{message} : $@;
return ($FALSE, "Can't validate Identity provider return message : $msg");
}

return ($result, $msg);
Expand Down

0 comments on commit 371eaf7

Please sign in to comment.