Having working on WPF MVVM (prism) application, I would like to implement authentication as it is for ASP.NET form based authentication. I would like to restrict users going to screens where authorization is required. how can this be implemented in WPF application, as I am using PRISM.
Asked
Active
Viewed 761 times
4
-
Updated my answer to a more suitable solution for you. hope it will help :) – Omri Btian Sep 24 '13 at 15:12
1 Answers
5
Assuming you are using Regions to navigate within your application, then your viewModels can implement the IConfirmNavigationRequest
interface.
There, you can use ConfirmNavigationRequest
which takes a callback, to determine if the user has access to the view, and if not, deny it.
Samples can be found here
Check out this link to learn more about this

Omri Btian
- 6,499
- 4
- 39
- 65