Navigation Controller

Topics: Prism v4 - Silverlight 4
Jun 28, 2011 at 9:08 AM

Dear all,

I have a menu module that takes care of loading the views into my main region; I have implemented an authentication in my application and now need to control the navigation to either the requested view or to a forbidden page.

Is it proper to do this in the menu module or there could be a better solution.

Appreciate your feedback



Jun 28, 2011 at 5:56 PM

Hi Waleed,

Based on the description of your scenario, in my opinion you should try to keep the separation of concerns of your modular application by leaving the menu module in charge of showing the menu, and related responsibilities, and not make it responsible of authorization of the users. What you should do is to create a module for authentication and authorization. This module will have the responsibility of letting you visit the requested view or simply redirecting to an information view showing a forbidden message.

Take into account that the rest of your application should be agnostic about your authentication and authorization process.

I hope you find this opinion useful.


Miguel Bronzovic