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
6febb8b2
Commit
6febb8b2
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
renamed --list_expired as --expired
parent
bf8f4dc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/account-manager.pl.in
+11
-18
11 additions, 18 deletions
bin/account-manager.pl.in
with
11 additions
and
18 deletions
bin/account-manager.pl.in
+
11
−
18
View file @
6febb8b2
...
...
@@ -33,7 +33,7 @@ GetOptions(
'
delete
',
'
displayname=s
',
'
email_address=s
',
'
filter_
expired
',
'
expired
',
'
sp_entityid=s
',
'
token=s
',
)
or
pod2usage
(
...
...
@@ -125,7 +125,7 @@ sub list_accounts {
push
@
{
$args
{
query
}
},
profile
=>
$options
{
profile
};
}
if
(
$options
{
filter_
expired
})
{
if
(
$options
{
expired
})
{
push
@
{
$args
{
query
}
},
expiration_date
=>
{
lt
=>
DateTime
->
now
()
};
}
...
...
@@ -253,7 +253,7 @@ sub list_tokens {
if
(
$options
{
token
})
{
push
@
{
$args
{
query
}
},
token
=>
$options
{
token
};
}
if
(
$options
{
filter_
expired
})
{
if
(
$options
{
expired
})
{
push
@
{
$args
{
query
}
},
creation_date
=>
{
lt
=>
time
-
(
$configuration
->
{
_
}
->
{
tokens_validity_period
}
*
3600
)
};
}
...
...
@@ -354,8 +354,7 @@ S<B<--sp_entityid> I<string>>
B<account-manager.pl> B<list_accounts>
S<[B<--profile> I<string>]>
S<[B<--sp_entityid> I<string>]>
[B<--filter_expired>]
[B<--delete>]
[B<--expired>] [B<--delete>]
B<account-manager.pl> B<parse_metadata>
S<[B<--sp_entityid> I<string>]>
...
...
@@ -371,8 +370,7 @@ B<account-manager.pl> B<list_services>
B<account-manager.pl> B<list_tokens>
S<B<--sp_entityid> I<string>>
S<[B<--token> I<string>]>
[B<--filter_expired>]
[B<--delete>]
[B<--expired>] [B<--delete>]
B<account-manager.pl> B<get_token>
S<B<--sp_entityid> I<string>>
...
...
@@ -402,12 +400,11 @@ Adds a new test account.
List all test accounts. Criterias can be added to filter test accounts.
$> account-manager.pl list_accounts --
filter_
expired
$> account-manager.pl list_accounts --expired
List all expired test accounts.
$> account-manager.pl list_accounts --filter_expired \
--delete
$> account-manager.pl list_accounts --expired --delete
Remove all expired test accounts from DB.
...
...
@@ -422,23 +419,19 @@ C<federation_metadata_file> configuration parameter.
List all authentication tokens. Criterias can be added to filter tokens.
$> account-manager.pl list_tokens \
--filter_expired
$> account-manager.pl list_tokens --expired
List all expired authentication tokens.
$> account-manager.pl list_tokens \
--filter_expired --delete
$> account-manager.pl list_tokens --expired --delete
Remove all expired authentication tokens from DB.
$> account-manager.pl get_token \
--token dhj67sjJ
$> account-manager.pl get_token --token dhj67sjJ
Get informations on a token.
$> account-manager.pl add_token \
--email_address john@my.fqdn \
$> account-manager.pl add_token --email_address john@my.fqdn \
--sp_entityid https://test.federation.renater.fr/test/ressource
Adds a new test account.
...
...
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