I'm developing simple MVC4 application with API. Now I wanna access data from mobile phone (from WP application - probably using odata client). How could I login from my application into website?
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
Marked as answer by ErolFoo on Mar 28, 2012 10:55 AM
ErolFoo
Member
17 Points
27 Posts
Web API and MVC Membership authentication
Mar 26, 2012 04:04 PM|LINK
Hi
I'm developing simple MVC4 application with API. Now I wanna access data from mobile phone (from WP application - probably using odata client). How could I login from my application into website?
imran_ku07
All-Star
45785 Points
7698 Posts
MVP
Re: Web API and MVC Membership authentication
Mar 27, 2012 07:01 PM|LINK
http://sixgun.co.uk/blog/2012/02/29/asp-net-web-api-basic-authentication/
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD
dbaier
Member
264 Points
66 Posts
MVP
Re: Web API and MVC Membership authentication
Mar 28, 2012 09:00 AM|LINK
You can find an extensible authn framework (and some write ups) here:
http://sixgun.co.uk/blog/2012/02/29/asp-net-web-api-basic-authentication/
dominick
_____________________________
Dominick Baier - http://www.leastprivilege.com
DDaugela
Member
2 Points
1 Post
Re: Web API and MVC Membership authentication
Jun 23, 2012 08:35 PM|LINK
If you still want to use both http basic auth, and the built in membership provider with the Web API, here is a good reference...
http://www.piotrwalat.net/basic-http-authentication-in-asp-net-web-api-using-membership-provider/