From 9cdfb6eb9cd30c4e06a7d9fef53e519983827d81 Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 19 Dec 2022 01:37:10 -0700 Subject: Initial commit! --- lib/auth/keys.ex | 8 ++++++++ lib/auth/password.ex | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 lib/auth/keys.ex create mode 100644 lib/auth/password.ex (limited to 'lib/auth') 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 -- cgit v1.2.3-70-g09d2