Merge pull request #22625 from eileenmcnaughton/comp
[civicrm-core.git] / ext / authx / Civi / Authx / None.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 namespace Civi\Authx;
13
14 class None implements AuthxInterface {
15
16 /**
17 * @inheritDoc
18 */
19 public function checkPassword(string $username, string $password) {
20 return NULL;
21 }
22
23 /**
24 * @inheritDoc
25 */
26 public function loginSession($userId) {
27 throw new \Exception("Cannot login: Unrecognized user framework");
28 }
29
30 /**
31 * @inheritDoc
32 */
33 public function logoutSession() {
34 throw new \Exception("Cannot logout: Unrecognized user framework");
35 }
36
37 /**
38 * @inheritDoc
39 */
40 public function loginStateless($userId) {
41 throw new \Exception("Cannot login: Unrecognized user framework");
42 }
43
44 /**
45 * @inheritDoc
46 */
47 public function getCurrentUserId() {
48 throw new \Exception("Cannot determine active user: Unrecognized user framework");
49 }
50
51 }