Created
May 17, 2017 08:35
-
-
Save pikl-cz/552b2e9044a088f519109217cafb889d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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