To search
You are here : Linux > Linux > Programming > Net::SAML 1.01

Net::SAML 1.01

Soft112 rating:
License:
Perl Artistic License
Added:
Nov 30, -1
Submit date:
Jun 27, 2012
Publisher:
Sampo Kellomaki
File size:
Downloads:
5777
 

Net::SAML 1.01

by Sampo Kellomaki

Net::SAML is a Perl extension for using SAML SSO.

SYNOPSIS


 use Net::SAML;

 $cf = Net::SAML::new_conf("/var/zxid/");
 Net::SAML::url_set($cf, $url);
 Net::SAML::set_opt($cf, 1 ,1); # Turn on libzxid level debugging

 $cgi = Net::SAML::new_cgi($cf, $ENV{'QUERY_STRING'});
 Net::SAML::parse_cgi($cgi, $qs);
 $op = Net::SAML::zxid_cgi::swig_op_get($cgi);
 $sid = Net::SAML::zxid_cgi::swig_sid_get($cgi);

 $ses = Net::SAML::fetch_ses($cf, $sid);
 $ses = Net::SAML::fetch_ses($cf, ""); # Just allocate an empty one
 Net::SAML::del_ses($cf, $ses);
 $sid = Net::SAML::zxid_ses::swig_sid_get($ses);
 $nid = Net::SAML::zxid_ses::swig_nid_get($ses);

 Net::SAML::lecp_check($cf, $cgi);
 Net::SAML::cdc_read($cf, $cgi);

 $url = Net::SAML::start_sso_url($cf, $cgi);
 $ret = Net::SAML::sp_deref_art($cf, $cgi, $ses);

 $req = Net::SAML::zxid_cgi::swig_saml_req_get($cgi);
 $res = Net::SAML::zxid_cgi::swig_saml_resp_get($cgi);
 $ret = Net::SAML::sp_dispatch($cf, $cgi, $ses, $res);

 Net::SAML::send_sp_meta($cf, $cgi);
 $idp = Net::SAML::load_cot_cache($cf);
 $eid = Net::SAML::zxid_entity::swig_eid_get($idp);
 $eid_len = Net::SAML::zxid_entity::swig_eid_len_get($idp);
 $idp = Net::SAML::zxid_entity::swig_n_get($idp);

 Net::SAML::sp_slo_redir($cf, $cgi, $ses);
 Net::SAML::sp_slo_soap($cf, $cgi, $ses);

 Net::SAML::sp_nireg_redir($cf, $cgi, $ses, 0);
 Net::SAML::sp_nireg_soap($cf, $cgi, $ses, 0);

 Net::SAML::OK;
 Net::SAML::REDIR_OK;



Product's homepage

Requirements:

· Perl

Languages:

OS requirements for Net::SAML 1.01:

  • Download Net::SAML 1.01

User comments about Net::SAML 1.01

Comment Net::SAML 1.01

  1. What did you think of the program?

    Log in or Create Account to post a comment.
         
    *
    *
  2. Rate this software    
  1. Security Code: Captcha Image Change Image

Get Our News, Everywhere

Linux

Programming

  • 500,000 monthly users
  • More 2,000,000 downloads monthly
  • More 250,000 programs, softwares, apps