aboutsummaryrefslogtreecommitdiff
path: root/Psso/AuthInterface
diff options
context:
space:
mode:
Diffstat (limited to 'Psso/AuthInterface')
-rw-r--r--Psso/AuthInterface/Password.php9
-rw-r--r--Psso/AuthInterface/Totp.php9
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;
+}