Advertisement
Guest User

SAEC - FakeData

a guest
Feb 14th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.83 KB | None | 0 0
  1. //fakedata
  2. $_SESSION['shibAuthData']['idpId'] = 'https://cafe.setic.ufsc.br/idp/shibboleth'; //idpId de alguma org para a qual vc tenha operador registrado
  3. $_SESSION['shibAuthData']['cn'] = 'joao';
  4. $_SESSION['shibAuthData']['sn'] = 'silva';
  5. $_SESSION['shibAuthData']['cpf'] = '08549639101';
  6. $_SESSION['shibAuthData']['dateOfBirth'] = '19901009';
  7. $_SESSION['shibAuthData']['email'] = uniqid().'@gmail.com'; //se quiser gerar varios, é legal usar uniqid() no email
  8. $_SESSION['client_ip'] = '150.162.56.145'; //if(whitelist == off) { use qualquer ip } else { coloque adicione um ip na whitelist e coloque-o aqui }
  9. //fakedata
  10.  
  11. //fakedata
  12. $_SESSION['SERVER']['Shib-Identity-Provider'] = 'https://cafe.setic.ufsc.br/idp/shibboleth'; //idpId de alguma org para a qual vc tenha operador registrado
  13. $_SESSION['SERVER']['Shib-inetOrgPerson-cn'] = 'joao';
  14. $_SESSION['SERVER']['Shib-inetOrgPerson-sn'] = 'silva';
  15. $_SESSION['SERVER']['Shib-inetOrgPerson-mail'] = uniqid().'@gmail.com'; //se quiser gerar varios, é legal usar uniqid() no email
  16. //fakedata
  17.  
  18.       /**
  19.       * TODO: delete
  20.       */
  21.      private function setJunkData() {
  22.          $_SERVER['Shib-Identity-Provider'] = 'https://shibboleth.ufsc.br/idp/shibboleth';
  23.          $_SERVER['Shib-inetOrgPerson-cn'] = 'joao';
  24.          $_SERVER['Shib-inetOrgPerson-sn'] = 'silva';
  25.          $_SERVER['Shib-inetOrgPerson-mail'] = 'joaosilva@gmail.com';
  26.          $_SERVER['Shib-brEduPerson-brEduAffiliationType'] = 'student';
  27.          $_SERVER["Shib-shacDateOfBirth"] = '19901009';
  28.          $_SERVER["Shib-brPerson-brPersonCPF"] = '08549639101';
  29.          $_SERVER["Shib-nis"] = 'nis?!?';
  30.          $_SERVER["Shib-rg"] = '5726789';
  31.          $_SERVER["Shib-tituloDeEleitor"] = 'exemploDeTituloDeEleitor';
  32.          $_SERVER["Shib-inss"] = 'exemploDeInss';
  33.          
  34.          $_SESSION['SERVER'] = $_SERVER;
  35.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement