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

automatic computation of profiles list

parent cd22542a
Branches
Tags
No related merge requests found
...@@ -47,13 +47,10 @@ name = eduGAIN Access Check ...@@ -47,13 +47,10 @@ name = eduGAIN Access Check
account_validity_period = 7 account_validity_period = 7
# token validity period, in hours # token validity period, in hours
tokens_validity_period = 2 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 # override contacts defined in metadata if defined
contacts = john@my.fqdn, sarah@my.fqdn contacts = john@my.fqdn, sarah@my.fqdn
# service-specific parameters # service-specific parameters
[https://my.service.fqdn] [https://my.service.fqdn]
account_validity_period = 90 account_validity_period = 90
account_profiles = student1, teacher1
contacts = john@my.fqdn contacts = john@my.fqdn
...@@ -491,7 +491,9 @@ sub req_complete_challenge { ...@@ -491,7 +491,9 @@ sub req_complete_challenge {
$token->secret(), $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( $self->respond(
template => 'complete_challenge.tt2.html', template => 'complete_challenge.tt2.html',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment