SAML: do not force optional parameters in add_provider_from_buffer

This commit is contained in:
Clément Oudot 2010-02-02 22:16:29 +00:00
parent a9abc60efd
commit 79075b8e5c

View File

@ -123,8 +123,8 @@ sub addIDP {
my $self = shift;
my $server = shift;
my $metadata = shift;
my $public_key = shift || '';
my $ca_cert_chain = shift || '';
my $public_key = shift;
my $ca_cert_chain = shift;
return 0 unless ( $server->isa("Lasso::Server") and defined $metadata );
@ -145,8 +145,8 @@ sub addProvider {
my $server = shift;
my $role = shift;
my $metadata = shift;
my $public_key = shift || '';
my $ca_cert_chain = shift || '';
my $public_key = shift;
my $ca_cert_chain = shift;
return 0
unless ( $server->isa("Lasso::Server")