Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Access Check - Account manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Access Check - Account manager
Commits
8727d618
Commit
8727d618
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
retrieve accounts list in the caller
parent
2418a31a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/account-manager.pl.in
+7
-1
7 additions, 1 deletion
bin/account-manager.pl.in
lib/IdPAccountManager/Tools.pm
+2
-4
2 additions, 4 deletions
lib/IdPAccountManager/Tools.pm
lib/IdPAccountManager/WebRequest.pm
+1
-0
1 addition, 0 deletions
lib/IdPAccountManager/WebRequest.pm
with
10 additions
and
5 deletions
bin/account-manager.pl.in
+
7
−
1
View file @
8727d618
...
...
@@ -137,10 +137,16 @@ sub list_accounts {
}
printf
"
%d accounts removed
\n
",
scalar
@$accounts
;
$accounts
=
IdPAccountManager::Data::TestAccount::
Manager
->
get_testaccounts
(
db
=>
$db
);
die
"
failed to update simpleSAMLphp configuration file
\n
"
unless
IdPAccountManager::Tools::
update_ssp_authsources
(
$configuration
->
{
templates_dir
},
$configuration
->
{
idp_accounts_file
}}
$configuration
->
{
idp_accounts_file
},
$accounts
);
printf
"
Update simpleSamlPhp configuration file...
\n
";
...
...
This diff is collapsed.
Click to expand it.
lib/IdPAccountManager/Tools.pm
+
2
−
4
View file @
8727d618
...
...
@@ -8,8 +8,6 @@ use Encode;
use
Template
;
use
Template::
Stash
;
use
IdPAccountManager::Data::TestAccount::
Manager
;
INIT
{
## a TT2 virtual method to get a variable type
$
Template::Stash::
LIST_OPS
->
{
isa
}
=
sub
{
...
...
@@ -82,14 +80,14 @@ sub generate_password {
## Updates simpleSamlPhp authsources.php configuration file
sub
update_ssp_authsources
{
my
(
$templates_dir
,
$output
)
=
@_
;
my
(
$templates_dir
,
$output
,
$accounts
)
=
@_
;
my
$tt2
=
Template
->
new
({
INCLUDE_PATH
=>
$templates_dir
});
my
$template
=
'
accountProfiles/valid-accounts.php.tt2
';
my
$data
=
{
accounts
=>
IdPAccountManager::Data::TestAccount::
Manager
->
get_testaccounts
(),
accounts
=>
$accounts
};
return
$tt2
->
process
(
$template
,
$data
,
$output
);
...
...
This diff is collapsed.
Click to expand it.
lib/IdPAccountManager/WebRequest.pm
+
1
−
0
View file @
8727d618
...
...
@@ -488,6 +488,7 @@ sub req_validate_token {
unless
(
IdPAccountManager::Tools::
update_ssp_authsources
(
$self
->
{
configuration
}
->
{
templates_dir
},
$self
->
{
configuration
}
->
{
idp_accounts_file
},
\
@accounts
))
{
push
@
{
$self
->
{
out
}
->
{
errors
}
},
"
accounts_creation_failed
";
$self
->
{
logger
}
->
error
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment