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
38fcf630
Commit
38fcf630
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
use shorter names for actions
parent
e97f5d08
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
+36
-36
36 additions, 36 deletions
bin/account-manager.pl.in
with
36 additions
and
36 deletions
bin/account-manager.pl.in
+
36
−
36
View file @
38fcf630
...
...
@@ -60,14 +60,14 @@ IdPAccountManager::DB->register_db(
my
$db
=
IdPAccountManager::
DB
->
new
();
for
(
$action
)
{
when
('
add_
test_
account
')
{
add_test
_account
()
}
when
('
list_
test_
accounts
')
{
list_te
st_accounts
()
}
when
('
add_
service_
provider
')
{
add_
service_
provider
()
}
when
('
list_
service_
providers
')
{
list_
service_
providers
()
}
when
('
add_
authentication_
token
')
{
add_
authentication_
token
()
}
when
('
get_
authentication_
token
')
{
get_
authentication_
token
()
}
when
('
list_
authentication_
tokens
')
{
list_
authentication_
tokens
()
}
when
('
parse_
federation_
metadata
')
{
parse_
federation_
metadata
()
}
when
('
add_account
')
{
add
_account
()
}
when
('
list_accounts
')
{
li
st_accounts
()
}
when
('
add_provider
')
{
add_provider
()
}
when
('
list_providers
')
{
list_providers
()
}
when
('
add_token
')
{
add_token
()
}
when
('
get_token
')
{
get_token
()
}
when
('
list_tokens
')
{
list_tokens
()
}
when
('
parse_metadata
')
{
parse_metadata
()
}
default
{
pod2usage
(
-
message
=>
"
invalid action '
$action
', aborting
\n
",
...
...
@@ -76,7 +76,7 @@ for ($action) {
}
}
sub
add_
test_
account
{
sub
add_account
{
pod2usage
(
-
message
=>
"
missing account_profile option, aborting
\n
",
-
verbose
=>
0
...
...
@@ -106,7 +106,7 @@ sub add_test_account {
}
sub
list_
test_
accounts
{
sub
list_accounts
{
my
%args
;
if
(
$options
{
sp_entityid
})
{
push
@
{
$args
{
query
}
},
sp_entityid
=>
$options
{
sp_entityid
};
...
...
@@ -148,7 +148,7 @@ sub list_test_accounts {
}
sub
parse_
federation_
metadata
{
sub
parse_metadata
{
my
$federation_metadata
;
eval
{
...
...
@@ -168,7 +168,7 @@ sub parse_federation_metadata {
print
Data::
Dumper
->
Dump
(
$data
);
}
sub
add_
service_
provider
{
sub
add_provider
{
pod2usage
(
-
message
=>
"
missing sp_entityid option, aborting
\n
",
...
...
@@ -212,7 +212,7 @@ sub add_service_provider {
}
sub
list_
service_
providers
{
sub
list_providers
{
my
%args
;
my
$providers
=
IdPAccountManager::Data::ServiceProvider::
Manager
->
get_serviceproviders
(
db
=>
$db
,
%args
);
...
...
@@ -227,7 +227,7 @@ sub list_service_providers {
}
sub
list_
authentication_
tokens
{
sub
list_tokens
{
my
%args
;
if
(
$options
{
sp_entityid
})
{
...
...
@@ -262,7 +262,7 @@ sub list_authentication_tokens {
}
sub
get_
authentication_
token
{
sub
get_token
{
my
%args
;
if
(
$options
{
token
})
{
...
...
@@ -285,7 +285,7 @@ sub get_authentication_token {
}
sub
add_
authentication_
token
{
sub
add_token
{
pod2usage
(
-
message
=>
"
missing email_address option, aborting
\n
",
...
...
@@ -335,102 +335,102 @@ account-manager-client.pl - Command line client to the Test IdP Account manager
=head1 SYNOPSIS
B<account-manager-client.pl> B<add_
test_
account>
B<account-manager-client.pl> B<add_account>
S<B<--account_profile> I<string>>
S<B<--sp_entityid> I<string>>
B<account-manager-client.pl> B<list_
test_
accounts>
B<account-manager-client.pl> B<list_accounts>
S<[B<--account_profile> I<string>]>
S<[B<--sp_entityid> I<string>]>
[B<--filter_expired>]
[B<--delete>]
B<account-manager-client.pl> B<parse_
federation_
metadata>
B<account-manager-client.pl> B<parse_metadata>
S<[B<--sp_entityid> I<string>]>
B<account-manager-client.pl> B<add_
service_
provider>
B<account-manager-client.pl> B<add_provider>
S<B<--sp_entityid> I<string>>
S<B<--contact> I<string>>
S<[B<--displayname> I<string>]>
B<account-manager-client.pl> B<list_
service_
providers>
B<account-manager-client.pl> B<list_providers>
B<account-manager-client.pl> B<list_
authentication_
tokens>
B<account-manager-client.pl> B<list_tokens>
S<B<--sp_entityid> I<string>>
S<[B<--token> I<string>]>
[B<--filter_expired>]
[B<--delete>]
B<account-manager-client.pl> B<get_
authentication_
token>
B<account-manager-client.pl> B<get_token>
S<B<--sp_entityid> I<string>>
S<[B<--token> I<string>]>
B<account-manager-client.pl> B<add_
authentication_
token>
B<account-manager-client.pl> B<add_token>
S<B<--sp_entityid> I<string>>
S<B<--email_address> I<string>>
=head1 DESCRIPTION
The Test Account manager instanciates test accounts associated to a SAML
Identity Provider.
This script provides a command-line interface for most
Identity Provider. This script provides a command-line interface for most
functions.
=head1 EXAMPLES
$> account-manager-client.pl add_
test_
account \
$> account-manager-client.pl add_account \
--sp_entityid https://test.federation.renater.fr/test/ressource \
--account_profile student1
Adds a new test account.
$> account-manager-client.pl list_
test_
accounts \
$> account-manager-client.pl list_accounts \
--sp_entityid https://test.federation.renater.fr/test/ressource \
--account_profile student1
List all test accounts. Criterias can be added to filter test accounts.
$> account-manager-client.pl list_
test_
accounts --filter_expired
$> account-manager-client.pl list_accounts --filter_expired
List all expired test accounts.
$> account-manager-client.pl list_
test_
accounts --filter_expired \
$> account-manager-client.pl list_accounts --filter_expired \
--delete
Remove all expired test accounts from DB.
$> account-manager-client.pl parse_
federation_
metadata
$> account-manager-client.pl parse_metadata
Parses the SAML metadata file, as defined by the
C<federation_metadata_file_path> configuration parameter.
$> account-manager-client.pl list_
authentication_
tokens \
$> account-manager-client.pl list_tokens \
--sp_entityid https://test.federation.renater.fr/test/ressource \
--token dhj67sjJ
List all authentication tokens. Criterias can be added to filter tokens.
$> account-manager-client.pl list_
authentication_
tokens \
$> account-manager-client.pl list_tokens \
--filter_expired
List all expired authentication tokens.
$> account-manager-client.pl list_
authentication_
tokens \
$> account-manager-client.pl list_tokens \
--filter_expired --delete
Remove all expired authentication tokens from DB.
$> account-manager-client.pl get_
authentication_
token \
$> account-manager-client.pl get_token \
--token dhj67sjJ
Get informations on a token.
$> account-manager-client.pl add_
authentication_
token \
$> account-manager-client.pl add_token \
--email_address john@my.fqdn \
--sp_entityid https://test.federation.renater.fr/test/ressource
Adds a new test account.
$> account-manager-client.pl add_
service_
provider \
$> account-manager-client.pl add_provider \
--sp_entityid https://test.federation.renater.fr/test/ressource \
--displayname 'Test SP' --contacts email1@dom,email2@dom
...
...
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