|
-
Feb 10th, 2011, 08:37 AM
#1
Thread Starter
Hyperactive Member
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).
-
Feb 10th, 2011, 02:23 PM
#2
Thread Starter
Hyperactive Member
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)?
-
Feb 10th, 2011, 10:34 PM
#3
Re: WPF + MVC sharing same assemblies
 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.
-
Feb 11th, 2011, 01:28 AM
#4
Thread Starter
Hyperactive Member
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.
-
Feb 11th, 2011, 02:56 PM
#5
Re: WPF + MVC sharing same assemblies
WPF is "just" an other way of creating the UI of the application.
-
Feb 12th, 2011, 08:08 AM
#6
Thread Starter
Hyperactive Member
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)
Last edited by Krokonoster; Feb 12th, 2011 at 10:16 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|