Net::SPID

Perl module for SPID authentication

Join the #spid-perl channel Get invited SPID on forum.italia.it

This Perl module is aimed at implementing SPID Service Providers and Attribute Authorities. SPID is the Italian digital identity system, which enables citizens to access all public services with single set of credentials. This module provides a layer of abstraction over the SAML protocol by exposing just the subset required in order to implement SPID authentication in a web application. In addition, it will be able to generate the HTML code of the SPID login button and enable developers to implement an Attribute Authority.

This module is not bound to any particular web framework, so you'll have to do some plumbing yourself in order to route protocol messages over HTTP (see the example/ directory for a full working example).

On top of this module, plugins for web frameworks can be developed in order to achieve even more API abstraction. See Dancer2::Plugin::SPID for the well-known Dancer2 framework. A plugin for Mojolicious is in the works.

Features

Compliance with SPID regulations (for Service Providers)

Compliance with SPID regulations (for Attribute Authorities)

More features

Repository layout

Prerequisites & installation

This module should be compatible with Perl 5.12+. Just install it with cpanm and it will install all dependencies automatically:

cpanm Net::SPID

Or, if you want the latest version from git, use:

cpanm https://github.com/italia/spid-perl/archive/master.tar.gz

See also

Authors