Lemonldap::Federation::Shibboleth - Perl extension for lemonldap websso and Shibboleth IDP
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 ;
There are two pieces of code :
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
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>
return the application id for an URI .
return entire line of redirection to IPD : eg :
see GenericSHIB.pm in example directory
eric German, <firstname.lastname@example.org>
Copyright (C) 2007 by lemonasso
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.