Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //fakedata
- $_SESSION['shibAuthData']['idpId'] = 'https://cafe.setic.ufsc.br/idp/shibboleth'; //idpId de alguma org para a qual vc tenha operador registrado
- $_SESSION['shibAuthData']['cn'] = 'joao';
- $_SESSION['shibAuthData']['sn'] = 'silva';
- $_SESSION['shibAuthData']['cpf'] = '08549639101';
- $_SESSION['shibAuthData']['dateOfBirth'] = '19901009';
- $_SESSION['shibAuthData']['email'] = uniqid().'@gmail.com'; //se quiser gerar varios, é legal usar uniqid() no email
- $_SESSION['client_ip'] = '150.162.56.145'; //if(whitelist == off) { use qualquer ip } else { coloque adicione um ip na whitelist e coloque-o aqui }
- //fakedata
- //fakedata
- $_SESSION['SERVER']['Shib-Identity-Provider'] = 'https://cafe.setic.ufsc.br/idp/shibboleth'; //idpId de alguma org para a qual vc tenha operador registrado
- $_SESSION['SERVER']['Shib-inetOrgPerson-cn'] = 'joao';
- $_SESSION['SERVER']['Shib-inetOrgPerson-sn'] = 'silva';
- $_SESSION['SERVER']['Shib-inetOrgPerson-mail'] = uniqid().'@gmail.com'; //se quiser gerar varios, é legal usar uniqid() no email
- //fakedata
- /**
- * TODO: delete
- */
- private function setJunkData() {
- $_SERVER['Shib-Identity-Provider'] = 'https://shibboleth.ufsc.br/idp/shibboleth';
- $_SERVER['Shib-inetOrgPerson-cn'] = 'joao';
- $_SERVER['Shib-inetOrgPerson-sn'] = 'silva';
- $_SERVER['Shib-inetOrgPerson-mail'] = 'joaosilva@gmail.com';
- $_SERVER['Shib-brEduPerson-brEduAffiliationType'] = 'student';
- $_SERVER["Shib-shacDateOfBirth"] = '19901009';
- $_SERVER["Shib-brPerson-brPersonCPF"] = '08549639101';
- $_SERVER["Shib-nis"] = 'nis?!?';
- $_SERVER["Shib-rg"] = '5726789';
- $_SERVER["Shib-tituloDeEleitor"] = 'exemploDeTituloDeEleitor';
- $_SERVER["Shib-inss"] = 'exemploDeInss';
- $_SESSION['SERVER'] = $_SERVER;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement