ASP.net as Form-Based Authentication in WPF MVVM Prism

While working on a WPF MVVM application (prism), I would like to implement authentication, as well as for authentication based on ASP.NET forms. I would like to restrict user access to screens where authorization is required. how can this be implemented in a WPF application since I am using PRISM.

+4
source share
1 answer

Assuming you use Regions to navigate in your application, then your view models can implement IConfirmNavigationRequest .

Here you can use the 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 it.

+5
source

All Articles