Posted on 07/08/2025 14:30:39
Hi,
I have a problem with loging in with the CLI that I cannot figure out.
I have a backend user "aki" / "test123". It has backend privilegies och is an administrator.
I have a DW10 running on https://localhost:40025/. I can login to backend through "/admin".
CLI:
PS C:\users\aki.ruuskanen\source\repos\dw10swift2> dw
Environment: development
User: undefined
Protocol: https
Host: localhost:40025
PS C:\users\aki.ruuskanen\source\repos\dw10swift2> dw login
? environment: development
? username: aki
? password: [hidden]
The CLI says:
Could not get the necessary information from the login request, please verify its a valid user in your Dynamicweb solution.
And the log says:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 POST https://localhost:40025/Admin/Authentication/Login - application/x-www-form-urlencoded 29
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'Dynamicweb.Management.UI.Controllers.AuthenticationController.Login (Dynamicweb.Management.UI)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102]
Route matched with {action = "Login", controller = "Authentication", area = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(Dynamicweb.CoreUI.Rendering.Models.LoginModel) on controller Dynamicweb.Management.UI.Controllers.AuthenticationController (Dynamicweb.Management.UI).
info: Microsoft.AspNetCore.Mvc.RedirectToActionResult[1]
Executing RedirectResult, redirecting to /Admin/Authentication/Login/Password.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105]
Executed action Dynamicweb.Management.UI.Controllers.AuthenticationController.Login (Dynamicweb.Management.UI) in 29.9165ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'Dynamicweb.Management.UI.Controllers.AuthenticationController.Login (Dynamicweb.Management.UI)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 POST https://localhost:40025/Admin/Authentication/Login - 302 0 - 192.2286ms
Any ideas what might be the problem here?
Regards / Aki
