diff options
Diffstat (limited to 'lib/auth')
-rw-r--r-- | lib/auth/keys.ex | 8 | ||||
-rw-r--r-- | lib/auth/password.ex | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/auth/keys.ex b/lib/auth/keys.ex new file mode 100644 index 0000000..3e0f142 --- /dev/null +++ b/lib/auth/keys.ex @@ -0,0 +1,8 @@ +defmodule Chessh.Auth.KeyAuthenticator do + use Sshd.PublicKeyAuthenticator + require Logger + + def authenticate(_, _, _) do + false + end +end diff --git a/lib/auth/password.ex b/lib/auth/password.ex new file mode 100644 index 0000000..5e31b33 --- /dev/null +++ b/lib/auth/password.ex @@ -0,0 +1,7 @@ +defmodule Chessh.Auth.PasswordAuthenticator do + use Sshd.PasswordAuthenticator + + def authenticate(_username, _password) do + true + end +end |