Lemonldap::Federation::Shibboleth - Perl extension for lemonldap websso and Shibboleth IDP


Lemonldap-Federation documentation Contained in the Lemonldap-Federation distribution.

Index


Code Index:

NAME

Top

Lemonldap::Federation::Shibboleth - Perl extension for lemonldap websso and Shibboleth IDP

SYNOPSIS

Top

  use Lemonldap::Federation::ShibbolethRequestMap ;
  my $requestmap = Lemonldap::Federation::ShibbolethRequestMap->new( xml_host => $extrait_de_xml ,
                                  xml_application=> $extrait_de_xml2 ,
                                  uri => $full_uri , ) ;
  my $re= $requestmap->application_id;
  my  $redirection = $requestmap->redirection ;




DESCRIPTION

Top

There are two pieces of code :

* Lemonldap::Federation::SplitURI
* Lemonldap::Federation::ShibbolethRequestMap

First (Lemonldap::Federation::SplitURI) is used in order to split uri in scheme , host , port and path .

 eg :   https://sp.example.org/secure/admin/index.html must be splited into 







* https
* 443
* sp.example.org
* secure
* admin
* index.html

The second compoment is the RequestMap . It job is to find and return the applicationID for URI. For this it uses an XML configuration file like this :

   <Host  scheme="https" port="443"  name="sp.example.org" >
		<Path name="secure" 
                      authType="shiboleth" 
                      requireSession="true"
                      exportAssertion="true">
                 <Path name="admin" applicationId ="foo-admin" />
                </Path>

  </Host>

METHODS:

Top

Constructor $requestmap = Lemonldap::Federation::ShibbolethRequestMap->new( xml_host => $extrait_de_xml , xml_application=> $extrait_de_xml2 , uri => $full_uri , ) ;

  with:




* xml_host : XML piece of <RequestMapProvider>..</RequestMapProvider>
* xml_application : XML piece of <Applications> ..</Applications>

Application_id

    return the application id for an URI .

redirection

    return entire line of redirection to IPD  :

   eg :

https://idp.exemple.org/sso?target=http%3A%2F%2Fauthen.demo.net%2Fshibe&shire=http%3A%2F%2Fsp.example.org%2Fshire&providerId=http%3A%2F%2Fsp.example.org

   see GenericSHIB.pm in example directory




SEE ALSO

Top

 https://spaces.internet2.edu/display/SHIB/WebHome
 http://shibboleth.internet2.edu/




AUTHOR

Top

eric German, <germanlinux@yahoo.fr>

COPYRIGHT AND LICENSE

Top


Lemonldap-Federation documentation Contained in the Lemonldap-Federation distribution.

package Lemonldap::Federation::Shibboleth;

use 5.008005;
use strict;
use warnings;

require Exporter;

our @ISA = qw(Exporter);

# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.

# This allows declaration	use Lemonldap::Federation::Shibboleth ':all';
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
# will save memory.
our %EXPORT_TAGS = ( 'all' => [ qw(
	
) ] );

our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );

our @EXPORT = qw(
	
);

our $VERSION = '0.0.1' ;


# Preloaded methods go here.

1;
__END__
# Below is stub documentation for your module. You'd better edit it!