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

move tokens_validity_period in service section

parent 9aad512d
Branches
Tags
No related merge requests found
...@@ -320,7 +320,7 @@ sub add_token { ...@@ -320,7 +320,7 @@ sub add_token {
} }
# compute a new token # compute a new token
my $validity_period = $configuration->{_}->{tokens_validity_period}; my $validity_period = $configuration->{service}->{tokens_validity_period};
my $token = AccountManager::Token->new( my $token = AccountManager::Token->new(
db => $db, db => $db,
email_address => $options{email_address}, email_address => $options{email_address},
......
# Token validity period, in hours
tokens_validity_period = 2
[app] [app]
support_email = support@my.fqdn support_email = support@my.fqdn
...@@ -35,8 +31,10 @@ displayname = eduGAIN Access Check ...@@ -35,8 +31,10 @@ displayname = eduGAIN Access Check
# default parameters for all services # default parameters for all services
[service] [service]
# validity period of test accounts, in days # test accounts validity period, in days
account_validity_period = 7 account_validity_period = 7
# token validity period, in hours
tokens_validity_period = 2
# valid account profiles # valid account profiles
account_profiles = fullset1, limitedset1, generic1, student1, student2, teacher1, teacher2, alumni1, librarywalkin1, employee1, researcher1 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
......
...@@ -398,7 +398,7 @@ sub req_complete_challenge { ...@@ -398,7 +398,7 @@ sub req_complete_challenge {
# compute a new token # compute a new token
my $validity_period = my $validity_period =
$self->{configuration}->{_}->{tokens_validity_period}; $self->{configuration}->{service}->{tokens_validity_period};
my $token = AccountManager::Token->new( my $token = AccountManager::Token->new(
db => $self->{db}, db => $self->{db},
email_address => $self->{in}->{email}, email_address => $self->{in}->{email},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment