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)
-
0
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.
-
0
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!
-
0
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 :)