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
10e12789
Commit
10e12789
authored
4 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
automatic computation of profiles list
parent
cd22542a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conf/manager.conf.in
+0
-3
0 additions, 3 deletions
conf/manager.conf.in
lib/AccountManager/App.pm
+3
-1
3 additions, 1 deletion
lib/AccountManager/App.pm
with
3 additions
and
4 deletions
conf/manager.conf.in
+
0
−
3
View file @
10e12789
...
...
@@ -47,13 +47,10 @@ name = eduGAIN Access Check
account_validity_period = 7
# token validity period, in hours
tokens_validity_period = 2
# valid account profiles
account_profiles = fullset1, limitedset1, generic1, student1, student2, teacher1, teacher2, alumni1, librarywalkin1, employee1, researcher1
# override contacts defined in metadata if defined
contacts = john@my.fqdn, sarah@my.fqdn
# service-specific parameters
[https://my.service.fqdn]
account_validity_period = 90
account_profiles = student1, teacher1
contacts = john@my.fqdn
This diff is collapsed.
Click to expand it.
lib/AccountManager/App.pm
+
3
−
1
View file @
10e12789
...
...
@@ -491,7 +491,9 @@ sub req_complete_challenge {
$token
->
secret
(),
);
my
@profiles
=
split
(
/, */
,
$self
->
{
configuration
}
->
{
service
}
->
{
account_profiles
});
my
@profiles
=
map
{
m/([^\/]+).tt2$/
}
glob
(
$self
->
{
configuration
}
->
{
setup
}
->
{
templates_dir
}
.
'
/accounts/*.tt2
'
);
$self
->
respond
(
template
=>
'
complete_challenge.tt2.html
',
...
...
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