Skip to content
Snippets Groups Projects
Commit 94f40efc authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

keep all existing accounts when updating accounts file

parent 87bdf78d
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ use Log::Any::Adapter;
use List::MoreUtils qw(uniq);
use IdPAccountManager::TestAccount;
use IdPAccountManager::TestAccount::Manager;
use IdPAccountManager::AuthenticationToken;
use IdPAccountManager::ServiceProvider;
use IdPAccountManager::SAMLMetadata;
......@@ -493,11 +494,15 @@ sub req_validate_token {
}
## Update simpleSAMLphp configuration to enable test accounts
my $accounts = IdPAccountManager::TestAccount::Manager->get_testaccounts(
db => $self->{db}
);
eval {
IdPAccountManager::Tools::update_ssp_authsources(
$self->{configuration}->{_}->{templates_dir},
$self->{configuration}->{idp}->{accounts_file},
\@accounts,
$accounts
);
};
if ($EVAL_ERROR) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment