Print Page | Close Window

Enforce login

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3262
Printed Date: 13-May-2026 at 10:48am


Topic: Enforce login
Posted By: alexander
Subject: Enforce login
Date Posted: 13-Feb-2012 at 2:37am
I want to make a Silverlight application, so I started using the "DevForce Silverlight Business Application". I noticed that when I launch this application, it takes me to these Home and About pages, with a login link.

In my application, I want to force people to log in, no matter which "page" in my Silverlight they are visiting. I have my own ideas on how to accomplish this, but they all seem like more work than should be strictly necessary (e.g. checking the authentication status on every page and redirecting to a login page if the check fails -- even more work because SL is async.)

What is the best way to accomplish this? Is there a setting I can turn on? Your http://drc.ideablade.com/xwiki/bin/view/Documentation/authorize - http://drc.ideablade.com/xwiki/bin/view/Documentation/authorize documentation only speak about how to authorize for the model, not how to authorize for the view.



Replies:
Posted By: sbelini
Date Posted: 16-Feb-2012 at 11:30am
Hi Alexander,
 
Unfortunatelly, DevForce does not have a setting where you could force login upon a view.
I think your approach of checking authentication status on each page and taking appropriate action might be the route to take.
I also found some articles at:
http://www.silverlightshow.net/items/Authorization-in-Silverlight-part-1-Authorized-navigation.aspx - http://www.silverlightshow.net/items/Authorization-in-Silverlight-part-1-Authorized-navigation.aspx
and
http://www.silverlightshow.net/items/Authorization-in-Silverlight-part-2-manipulating-the-UI.aspx - http://www.silverlightshow.net/items/Authorization-in-Silverlight-part-2-manipulating-the-UI.aspx
 
that might shed some light.
 
Regards,
   Silvio.



Print Page | Close Window