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.
- 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.
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
Post a Comment