diff options
Diffstat (limited to 'Psso/AuthInterface')
| -rw-r--r-- | Psso/AuthInterface/Password.php | 9 | ||||
| -rw-r--r-- | Psso/AuthInterface/Totp.php | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Psso/AuthInterface/Password.php b/Psso/AuthInterface/Password.php new file mode 100644 index 0000000..d20d759 --- /dev/null +++ b/Psso/AuthInterface/Password.php @@ -0,0 +1,9 @@ +<?php +namespace Psso\AuthInterface; + +interface Password { + public function validatePassword( + string $username, + #[\SensitiveParameter] string $password + ): bool; +} diff --git a/Psso/AuthInterface/Totp.php b/Psso/AuthInterface/Totp.php new file mode 100644 index 0000000..5e09117 --- /dev/null +++ b/Psso/AuthInterface/Totp.php @@ -0,0 +1,9 @@ +<?php +namespace Psso\AuthInterface; + +interface Totp { + public function validateTotp( + string $user, + #[\SensitiveParameter] string $otp + ): bool; +} |
