XDI::SPIT - XDI Service Provider Interface Toolkit
use XDI::SPIT; my $iname = '@blueoxen*eekim'; my $rtnUrl = 'http://www.blueoxen.org/?'; my $spit = new XDI::SPIT; my ($idBroker, $inumber) = $spit->resolveBroker($iname); my $redirectUrl = $spit->getAuthUrl($idBroker, $iname, $rtnUrl); # Use this to redirect to identity broker login screen
Perl library for Service Providers to authenticate and synchronize data with data brokers.
Resolves the XRI e-name. Returns the identity broker and e-number corresponding to an e-name.
Returns the redirection URL for sending the user to the identity broker for login. Send the following HTTP header to redirect:
where $redirectUrl is the result of getAuthUrl().
Validates with $idBroker that user $iname is indeed logged in. $xsid is passed by the identity broker when it redirects to the return URL (specified in &getAuthUrl). Returns 1 or 0.
Logs out of a sessions with the identity broker. Returns 1 or 0.
More information is available at the Identity Commons Wiki:
and especially the following pages:
Eugene Eric Kim, <email@example.com>
Copyright (c) Blue Oxen Associates 2004. All rights reserved.
See COPYING for licensing terms.