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
61dc9a9f
Commit
61dc9a9f
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
move tokens_validity_period in service section
parent
9aad512d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/access-check-manager.pl.in
+1
-1
1 addition, 1 deletion
bin/access-check-manager.pl.in
conf/manager.conf.in
+3
-5
3 additions, 5 deletions
conf/manager.conf.in
lib/AccountManager/App.pm
+1
-1
1 addition, 1 deletion
lib/AccountManager/App.pm
with
5 additions
and
7 deletions
bin/access-check-manager.pl.in
+
1
−
1
View file @
61dc9a9f
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
conf/manager.conf.in
+
3
−
5
View file @
61dc9a9f
# 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
...
...
This diff is collapsed.
Click to expand it.
lib/AccountManager/App.pm
+
1
−
1
View file @
61dc9a9f
...
@@ -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
},
...
...
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