for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SkautisAuth;
use Nette;
/**
* Use for data from SkautIS only!
* Never let user to set his ID himself.
* @author Hána František <[email protected]>
*/
class SkautisAuthenticator extends Nette\Object implements Nette\Security\IAuthenticator
{
public function authenticate(array $credentials)
$data = $credentials[0];
return new Nette\Security\Identity($data->ID_User);
}