Skip to content
Snippets Groups Projects
Commit 09879040 authored by renater.salaun's avatar renater.salaun
Browse files

fix typo

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@109 047e039d-479c-447e-8a29-aa6bf4a09bab
parent 12be3999
No related branches found
No related tags found
No related merge requests found
...@@ -447,21 +447,21 @@ sub req_validate_token { ...@@ -447,21 +447,21 @@ sub req_validate_token {
unless ($authentication_token->load()) { unless ($authentication_token->load()) {
push @{$self->{'param_out'}{'errors'}}, "wrong_token"; push @{$self->{'param_out'}{'errors'}}, "wrong_token";
&IdPAccountManager::Tools::do_log('error', "Failed to validate authentication token %s for sp_entityid %s", &IdPAccountManager::Tools::do_log('error', "Failed to validate authentication token %s for sp_entityid %s",
$self->{'param_in'}{'token'}, $self->{'param_in'}{'sp_entityid'}); $self->{'param_in'}{'authentication_token'}, $self->{'param_in'}{'sp_entityid'});
return undef; return undef;
} }
unless ($authentication_token->get('sp_entityid') eq $self->{'param_in'}{'sp_entityid'}) { unless ($authentication_token->get('sp_entityid') eq $self->{'param_in'}{'sp_entityid'}) {
push @{$self->{'param_out'}{'errors'}}, "wrong_token_for_sp"; push @{$self->{'param_out'}{'errors'}}, "wrong_token_for_sp";
&IdPAccountManager::Tools::do_log('error', "Authentication token %s cannot be used for SP with entityid %s", &IdPAccountManager::Tools::do_log('error', "Authentication token %s cannot be used for SP with entityid %s",
$self->{'param_in'}{'token'}, $self->{'param_in'}{'sp_entityid'}); $self->{'param_in'}{'authentication_token'}, $self->{'param_in'}{'sp_entityid'});
return undef; return undef;
} }
## delete the token ## delete the token
unless ($authentication_token->delete()) { unless ($authentication_token->delete()) {
&IdPAccountManager::Tools::do_log('error', "Failed to delete authentication token %s", &IdPAccountManager::Tools::do_log('error', "Failed to delete authentication token %s",
$self->{'param_in'}{'token'}); $self->{'param_in'}{'authentication_token'});
} }
## create test accounts ## create test accounts
...@@ -482,7 +482,7 @@ sub req_validate_token { ...@@ -482,7 +482,7 @@ sub req_validate_token {
} }
&IdPAccountManager::Tools::do_log('info', "Token validated for sp_entityid=%s;token=%s", $self->{'param_in'}{'sp_entityid'}, $self->{'param_in'}{'token'}); &IdPAccountManager::Tools::do_log('info', "Token validated for sp_entityid=%s;token=%s", $self->{'param_in'}{'sp_entityid'}, $self->{'param_in'}{'authentication_token'});
$self->{'param_out'}{'sp_entityid'} = $self->{'param_in'}{'sp_entityid'}; $self->{'param_out'}{'sp_entityid'} = $self->{'param_in'}{'sp_entityid'};
$self->{'param_out'}{'test_accounts'} = \@test_accounts; $self->{'param_out'}{'test_accounts'} = \@test_accounts;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment