Skip to content

Instantly share code, notes, and snippets.

@pikl-cz
Created May 17, 2017 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pikl-cz/552b2e9044a088f519109217cafb889d to your computer and use it in GitHub Desktop.
Save pikl-cz/552b2e9044a088f519109217cafb889d to your computer and use it in GitHub Desktop.
<?php
namespace FlexiAuth;
use Nette\Security as NS;
class Authenticator implements \FlexiAuth\IAuthenticator {
/*
* Where user can go
*/
const MODULE = null;
/**
* @param string[] $credentials
*/
public function authenticate(array $credentials)
{
//return new \FlexiAuth\Identity(self::MODULE, 0);
}
}
<?php
namespace FlexiAuth;
interface IAuthenticator extends \Nette\Security\IAuthenticator {
public function authenticate(array $credentials);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment