c# - Asp.net mvc5 WPF authentication -
i'm playing around asp.net / mvc5 had idea wanted create wpf login can use login wpf app asp.net info. assume have create login form onto wpf , send mvc website, server verifies them , if credentials correctly emits authentication cookie sent client. client stores cookie further authentication.
so means need send post request mvc website verifies username , password, server returns cookie stored client in cookiecontainer. how ever rather stuck on how go ahead , this.
as @goobering pointed out in comment above, big of question answered on stack overflow post. you're looking tutorials. more importantly, wpf app going reach out mvc webiste authentication and/or authorization, or going other data well?
my suggestion make wcf authorization web service hosted on same website mvc. integrating identity wcf easy, , integrating wcf wpf apps simpler. support getting other data need mvc website. here links:
http://www.codemag.com/article/0611051
https://msdn.microsoft.com/en-us/library/ee748498.aspx
http://www.codeproject.com/articles/802435/authentication-and-authorization-with-asp-net-iden
Comments
Post a Comment