WPF + MVC sharing same assemblies
I got a solution with several projects (domain model, data access using EF, service implementations, etc) and consume these in a MVC project.
The authentication/authorization project uses forms authentication.
I need (it's a test kind of) to add a WPF project (hardly ever used it, plan to figure out the basics as I go along) that does the same thing as the web (mvc) app and use the same services, etc.
Will I be able to use th forms authentication service in the WPF project, or what? ( I hardly can recall a thing since I last did desktop apps).
Re: WPF + MVC sharing same assemblies
Hmmm...ok, let me change the question:
How would you normally do authentication and authorization in WPF?
Is it possible to create something loosely coupled that can be implemented in other applications (such as asp.net / MVC)?
Re: WPF + MVC sharing same assemblies
Quote:
Originally Posted by
Krokonoster
Will I be able to use th forms authentication service in the WPF project, or what? ( I hardly can recall a thing since I last did desktop apps).
The answer is yes. That model was created for ASP.NET but can work in Windows apps too. You just have to add the appropriate references and a bit of plumbing. I did this search recently:
http://www.google.com.au/search?q=as...ient=firefox-a
There may be similar information available for WPF or you may have to just adapt the WinForms info for WPF.
Re: WPF + MVC sharing same assemblies
Thanks for the good news. At least know now I won't be wasting my time going that direction.
Re: WPF + MVC sharing same assemblies
WPF is "just" an other way of creating the UI of the application.
Re: WPF + MVC sharing same assemblies
of course..as long you keep your things loosely coupled.
Just need to find out HOW to use my dll that take care of authentication in a wpf app.
In your web app it's just a matter setting things up in your web.config. (I'm sure the answer is in a link I got with jmcilhinney's hint here)