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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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',
......
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