| 1 | <?php |
||
| 14 | abstract class Connector { |
||
| 15 | |||
| 16 | # Connector configuration interface |
||
| 17 | |||
| 18 | protected static $type = '', $lifetime = ''; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Authorize with a given session/secret code and an authorization mode |
||
| 22 | * |
||
| 23 | * @return array|false : the array of type ['auth' => $auth, 'user' => $user], |
||
| 24 | * where $auth is an object of type Entitizer\Entity\User\Session or Entitizer\Entity\User\Secret, |
||
| 25 | * and $user is an object of type Entitizer\Entity\User, or false on failure |
||
| 26 | */ |
||
| 27 | |||
| 28 | public static function authorize(string $code, bool $admin) { |
||
| 50 | } |
||
| 51 | } |
||
| 52 |