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
50e502de
Commit
50e502de
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
update POD documentation
parent
81c542f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/IdPAccountManager/SAMLMetadata.pm
+23
-39
23 additions, 39 deletions
lib/IdPAccountManager/SAMLMetadata.pm
lib/IdPAccountManager/Tools.pm
+4
-4
4 additions, 4 deletions
lib/IdPAccountManager/Tools.pm
with
27 additions
and
43 deletions
lib/IdPAccountManager/SAMLMetadata.pm
+
23
−
39
View file @
50e502de
...
...
@@ -212,68 +212,52 @@ SAMLMetadata - loading SAML federation metadata
=head1 SYNOPSIS
my $federation_metadata = new IdPAccountManager::SAMLMetadata;
unless ($federation_metadata->load(federation_metadata_file_path => '/tmp/edugain-saml-metadata.xml')) {
die;
}
my %args;
if ($options{sp_entityid}) {
$args{filter_entity_id} = $options{sp_entityid};
}
# instanciate metadata object
my $metadata = IdPAccountManager::SAMLMetadata->new(
file => '/tmp/edugain-saml-metadata.xml'
);
unless ($federation_metadata->parse(sp_entityid => 'https://test.federation.renater.fr/test/ressource')) {
die;
}
## List SAML entities
printf "Hashref representing the metadata:\n";
IdPAccountManager::Tools::dump_var($federation_metadata->{federation_metadata_as_hashref}, 0, \*STDOUT);
# extract metadata for a single SAML entity
my $entities = $metadata->parse(id => $id);
=head1 DESCRIPTION
The Test Account manager instanciates test accounts associated to a SAML Identity Provider.
This module parses a SAML2 metadata file.
=head1 SUBROUTINES/METHODS
=over 8
This class parses a SAML2 metadata file.
=
item C<new ARGS>
=
head1 CLASS METHODS
Class method. Create a new IdPAccountManager::SAMLMetadata object.
Example:
my $federation_metadata = new IdPAccountManager::SAMLMetadata;
=over
=item
C<load ARGS>
=item
new()
Loads the
SAML
m
etadata
file
.
Create a new IdPAccountManager::
SAML
M
etadata
object
.
Supported arguments include:
=over
12
=over
=item
C
<f
ederation_
metadata
_
file
_
path
>
=item
I
<f
ile>:
metadata
file
path
Path of the SAML metadata file.
=back
=back
=item C<parse ARGS>
=head1 INSTANCE METHODS
=over
=item parse()
Parse the SAML metadata file.
Supported arguments include:
=over
12
=over
=item
C<filter_entity_id>
=item
I<id>: keep only entity with matching ID
EntityID of SAML entities to filter.
=item I<type>: keep only entity with matching type
=back
=item C<print FD>
Dumps the content of the SAML metadata to the specified FD file handler (default to STDOUT)
=back
This diff is collapsed.
Click to expand it.
lib/IdPAccountManager/Tools.pm
+
4
−
4
View file @
50e502de
...
...
@@ -107,15 +107,15 @@ IdPAccountManager::Tools - Set of subroutines usefull for the Test Account manag
The Test Account manager instanciates test accounts associated to a SAML Identity Provider.
This module gathers a set of usefull subroutines.
=head1
SUBROUTINES/METHOD
S
=head1
FUNCTION
S
=over
8
=over
=item
C<
generate_password
>
=item generate_password
()
Returns a random password following some security guidelines.
=item
C<
update_ssp_authsources
>
=item update_ssp_authsources
()
Update simpleSAMLphp authsources.php configuration file with the currently valid test accounts.
...
...
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