Login Page with Prism(CAG)

Topics: Prism v2 - Silverlight 3
Feb 10, 2010 at 12:15 PM

Hello Guys,

I am working with Composite application guidance and I need your help on the same. I need to create a login page for our application which is in Composite Application Guidance. The shell with the application should not be loaded before the login page. I mean depending upon the result of the login page the shell should be loaded and the application should be accessible. Can any of you guys help me out on this problem.

Thanks and Regards,


Feb 10, 2010 at 11:27 PM
Edited Feb 11, 2010 at 6:34 PM

Hi Danish,

One possible approach could be adding the LoginView to the MainRegion of your application so the user can log-in. Once he enters his credentials and the required validation is performed, you can load the necessary modules on demand (which will save you the trouble of loading modules without needing to) and add the required views to their respective region(s).

The following thread deals with similar approaches (although it is for WPF some of the ideas might be useful):

Please let me know if this helps.

Damian Schenkelman 

Feb 21, 2010 at 11:18 AM


I'm completly new to Prism and Silverlight in general, but I'm trying to learn it and thought this videos was a very good starting point http://channel9.msdn.com/posts/akMSFT/Creating-a-modular-application-using-Prism-V2-Part-1-of-4--Creating-a-shell-and-modules/

After building the application from the walkthrough in the link above I now want to authenticate a user before he can use the application. I like the idea of loading the necessary modules on demand based on the authentication and authorization of the user. But as a complete newbie I really struggle to get a clear understanding how this could be done. Could anyone give me something more concrete on this?

Where do I add the LoginView? In a sub folder in the main silverlight-project where I have the bootstrapper? I cant understand that if you want to show a login-prompt before you access the application features, how could you create a business application? Usually you have to login to an business application. You cant use Windows either without logging on with your credentials. This should be one of the basic and most common walkthroughs when introduced to Silverlight when LOB applications is the goal.

I would really like to get some good advice on this. Can I suggest this to be an post in your blog, Damian?


Thanks in advance!

Oct 7, 2011 at 9:04 PM


You might find the following blog post useful, which deals with authentication and role based authorization in Prism (using shared services):

Authentication and role based authorization in Prism v4


Guido Leandro Maliandi