diff --git a/source/agora/api/Admin.d b/source/agora/api/Admin.d index ac4c989d596..011564c2612 100644 --- a/source/agora/api/Admin.d +++ b/source/agora/api/Admin.d @@ -44,6 +44,24 @@ public interface NodeControlAPI @viaQuery("console") Nullable!bool console = Nullable!(bool).init, @viaQuery("file") Nullable!string file = Nullable!(string).init); + /*************************************************************************** + + Log in to the admin server + + This is dummy endpoint for checking the username and password in + HTTP basic authentication. + + API: + GET /login + + ***************************************************************************/ + + @method(HTTPMethod.GET) + @resultSerializer!(RawStringSerializer.serialize, + RawStringSerializer.deserialize, + "application/json")() + public void login (); + /*************************************************************************** Respond with QR code containing login information. diff --git a/source/agora/node/admin/AdminInterface.d b/source/agora/node/admin/AdminInterface.d index 170fabf987f..9116b122cfe 100644 --- a/source/agora/node/admin/AdminInterface.d +++ b/source/agora/node/admin/AdminInterface.d @@ -55,6 +55,7 @@ import core.time : days; This will added by node management and monitoring interfaces. API: + GET /login : Log in to the admin server GET /loginQR : Respond with QR code containing login information. GET /encryptionKeyQR : Respond with QR code containing EncryptionKey. @@ -119,6 +120,11 @@ public class AdminInterface : NodeControlAPI configureLogger(config, !console.isNull() || !file.isNull()); } + // GET: /login + public override void login () + { + } + /*************************************************************************** Respond with QR code containing login information.