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
2418a31a
Commit
2418a31a
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
use shorter variable names
parent
50e502de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/IdPAccountManager/WebRequest.pm
+8
-8
8 additions, 8 deletions
lib/IdPAccountManager/WebRequest.pm
with
8 additions
and
8 deletions
lib/IdPAccountManager/WebRequest.pm
+
8
−
8
View file @
2418a31a
...
...
@@ -462,20 +462,20 @@ sub req_validate_token {
}
## create test accounts
my
@
test_
accounts
;
my
@accounts
;
foreach
my
$profile
(
split
(
/, */
,
$self
->
{
configuration
}
->
{
account_profiles
}))
{
my
$
test_
account
=
IdPAccountManager::Data::
TestAccount
->
new
(
my
$account
=
IdPAccountManager::Data::
TestAccount
->
new
(
db
=>
$self
->
{
db
},
account_profile
=>
$profile
,
sp_entityid
=>
$self
->
{
in
}
->
{
sp_entityid
}
);
next
unless
$
test_
account
;
next
unless
$
test_
account
->
save
();
push
@
test_
accounts
,
$
test_
account
;
next
unless
$account
;
next
unless
$account
->
save
();
push
@accounts
,
$account
;
}
unless
(
@
test_
accounts
)
{
unless
(
@accounts
)
{
push
@
{
$self
->
{
out
}
->
{
errors
}
},
"
accounts_creation_failed
";
$self
->
{
logger
}
->
errorf
(
"
Failed to create test accounts for SP with entityid %s
",
...
...
@@ -487,7 +487,7 @@ sub req_validate_token {
## Update simpleSAMLphp configuration to enable test accounts
unless
(
IdPAccountManager::Tools::
update_ssp_authsources
(
$self
->
{
configuration
}
->
{
templates_dir
},
$self
->
{
configuration
}
->
{
idp_accounts_file
}
$self
->
{
configuration
}
->
{
idp_accounts_file
}
,
))
{
push
@
{
$self
->
{
out
}
->
{
errors
}
},
"
accounts_creation_failed
";
$self
->
{
logger
}
->
error
(
...
...
@@ -503,7 +503,7 @@ sub req_validate_token {
);
$self
->
{
out
}
->
{
sp_entityid
}
=
$self
->
{
in
}
->
{
sp_entityid
};
$self
->
{
out
}
->
{
test_accounts
}
=
\
@
test_
accounts
;
$self
->
{
out
}
->
{
test_accounts
}
=
\
@accounts
;
$self
->
{
out
}
->
{
subtitle
}
=
'
Complete Email Challenge
';
return
1
;
...
...
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