Base solution for your next web application
Open Closed

Connection from WPF Application without password #5187


User avatar
0
dfielec created

Hello,

We tried to make authentification from WPF Application using RFID Tags. When we pass the RFID, we succeeded to get the user. So we try to sign it in. But, we have no access to AccountController in the Web project. So we try to impliment the SignInAsync Method. The problem is in the IocManager in Microsoft.OWIN.Security, The HttpContext throws NullRefernceException.

Is there a way to do the SignIn without password or to get the palin text password from the hashed one. Any suggestion will be apreciated.

Thanks in advance


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    You can use External Authentication. <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Zero/User-Management#external-authentication">https://aspnetboilerplate.com/Pages/Doc ... entication</a>

  • User Avatar
    0
    dfielec created

    Hello,

    thank you alper for your quick response. But, I can't find how to authenticatate without password. Can you please give me an example of the implimentation of the "TryAuthenticateAsync" method;

    thanks in advance.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @DFIELEC I think you need to use token auth, similar to this one <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Core/Controllers/TokenAuthController.cs#L104">https://github.com/aspnetzero/aspnet-ze ... er.cs#L104</a>.

    You can create a similar action without password, get a token using this action and include that token in every request's header while you are calling an app service from your WPF app remotely.