Base solution for your next web application
Open Closed

Tenant webapi autentification #1585


User avatar
0
econmedia created

I try to use WebAPI log/autenticate from an external mobile application , but that works only for basic admin user(<a class="postlink" href="http://localhost:6240/api/Account/Authenticate">http://localhost:6240/api/Account/Authenticate</a>). It is restricted only for this user authentication , and if so there is a possibility to authenticate tenant username through WebAPI ? Thanks! Lucian.


4 Answer(s)
  • User Avatar
    0
    benjamim created

    I use Ionic and have problem with Cross-domain ...

    see my post #1586

  • User Avatar
    0
    hikalkan created
    Support Team

    Authenticating for tenants should also work. For example, you can download this demo: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/ConsoleRemoteWebApiCall">https://github.com/aspnetboilerplate/as ... WebApiCall</a> It uses demo.aspnetzero.com to get roles of a tenant via token based auth.

  • User Avatar
    0
    econmedia created

    Hi, I tried again, only works with the admin user , and yes, if we try to connect a mobile application , the CORS over the service must be necessarily activated (I'm not get there yet :) ). Can you check please if tenant 's login works for you ? Thanks!

  • User Avatar
    0
    econmedia created

    I tried the server, I was thinking that maybe it's a problem with the local server , I enabled CORS , too, it works only with user admin . Enabling CORS is easy , thanks for the link :)