c# - Web app(MVC 5),web api 2, native Android and iOS to use one mode of authentication? -


i need develop application in mvc 5, xamarin android , ios application; these applications have same features, have web api 2 common operations except one! authentication!

i want above applications use one authentication framework/architecture either asp.net identity 2.0, web api token based authentication or other suggest.

  1. successfully implement asp.net identity 2.0 mvc 5 app, couldn't authenticate web api [authorize] attribute (tried both system.web.http , system.web.mvc). hence did not think of trying mobile apps yet.
  2. successfully implement web api token based authentication web api , mvc 5 well, lots of javascript variable storage (which not right). tried authenticate mvc 5 app [authorize] attribute (tried both system.web.http , system.web.mvc) page either shows 401 unauthorized if token not yet granted , once token granted view opens, , doesn't authenticated after token's validity expired, works on when use [system.web.mvc.authorize] attribute. have sample implement on mobile did not try yet.

    i feel not implementing part perfectly, if proper tutorial use token based authentication web api, mvc , mobile applications nothing that.

i not wish use either angular or knockout js. if solution opt sure.

thanks :)


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -