summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/leak.php
blob: 7701c2706a8945feef10264c895fd91a6ea1b12c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/php
<?php
  
 if(!extension_loaded('lasso')) {
	    dl('lasso.' . PHP_SHLIB_SUFFIX);
  }

  /*
   *
   */
  
  lasso_init();

  $server = lasso_server_new("./sp.xml", "./rsapub.pem", 
  "./rsakey.pem", "./rsacert.pem", lassoSignatureMethodRsaSha1);
  lasso_server_add_provider($server, "./idp.xml", "", "");

  $login = lasso_login_new($server);
  
  lasso_login_init_authn_request($login, 
  "https://identity-provider:2003/liberty-alliance/metadata");

  $profile = lasso_cast_to_profile($login);
  lasso_profile_get_request($profile);

  $profile2 = lasso_cast_to_profile($login);
  lasso_profile_get_request($profile2);
  
  lasso_shutdown();
?>