<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : AllowAnonymousLogIn</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : AllowAnonymousLogIn</description>
  <pubDate>Wed, 29 Jul 2026 19:31:24 -700</pubDate>
  <lastBuildDate>Thu, 07 Apr 2011 13:42:27 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2601</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>AllowAnonymousLogIn : Hi Robert,    The  attribute...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10414#10414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2601<br /><strong>Posted:</strong> 07-Apr-2011 at 1:42pm<br /><br />Hi Robert, <DIV></DIV><DIV>&nbsp;</DIV><DIV>The &#091;RequiresAuthorization&#093; attribute was just what I was looking for. Somehow I had gotten the impression that there wasn't such a property in DevForce, but thankfully there is!</DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I do appreciate the support.</DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Thu, 07 Apr 2011 13:42:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10414#10414</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : Greg,Oh, sorry about that! Too...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10412#10412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1097" rel="nofollow">robertg</a><br /><strong>Subject:</strong> 2601<br /><strong>Posted:</strong> 07-Apr-2011 at 11:31am<br /><br />Greg,<br><br>Oh, sorry about that! Too many concepts using the same keywords...<br><br>If you look at the section on Security in the DRC, at <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/authorize" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/authorize</a>, you'll see a sections on <i>RequiresAuthorization. </i>If you don't want&nbsp; your authorization logic to be in the query interceptor itself, you can instead&nbsp;add this attribute to your partial class, or inject a base class into that partial class which has it. (Similarly, you could use <i>RequiresRoles</i><span ="wikiexternal"></span>, supplying one role to your authenticated users, and a different role to the guest user.) Otherwise, I believe you'll have to continue validating access with each query, as described on this DRC page.<br><br>We do have an example of a robust security model for SilverLight applications in the DRC, at <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-secure-infrastructure" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-secure-infrastructure</a>.<br><br>Let me know if I'm still missing something here... thorough, explicit, examination of data access is part of a robust security model in public applications of any sort. It is good of you to be concerned about maintaining that security, even while trying to simplify the development structure of your app.<br><br>-- Robert]]>
   </description>
   <pubDate>Thu, 07 Apr 2011 11:31:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10412#10412</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn :    I am not sure we are on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10403#10403</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2601<br /><strong>Posted:</strong> 06-Apr-2011 at 12:57pm<br /><br />I am not sure we are on the same page here.<div>&nbsp;</div><div>Starting with the SL Business Template, I add an ASPNETDB connection string which is the database for the users.&nbsp; </div><div>&nbsp;</div><div>Then the user goes to the Registration Page and registers.&nbsp; This works until I want to disallow anonymous access to the business entities.&nbsp; So I go into the web.config to the object server settings like this:</div><div>&nbsp;</div><div><span style="color: blue;">&lt;</span><span>objectServer</span><span style="color: blue;">&gt;</span><br><span style="color: blue;">      &lt;</span><span>serverSettings</span><span style="color: blue;"> </span><span style="color: red;">useAspNetSecurityServices</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"<span style="color: blue;"> </span><span style="color: red;">loginManagerRequired</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"<span style="color: blue;"> </span><span style="color: red;">allowAnonymousLogin</span><span style="color: blue;">=</span>"false"<span style="color: blue;"> /&gt;</span><br><span style="color: blue;">    &lt;/</span><span>objectServer</span><span style="color: blue;">&gt;</span><br><span style="color: blue;">&nbsp; </span></div><div>In other words, I need to verify that anyone connecting to the DevForce WCF service is authenticated so I don't get a hacker somehow making calls on the database.&nbsp; To do that I change the object server settings to allowAnonymousLogin to false.&nbsp; At that point, however, a person can no longer register because he is an anonymous user when he is registering which is disallowed.&nbsp; Thus if I want to allow registering, I have to allow anonymous logon.&nbsp; </div><div>&nbsp;</div><div>So of course I would like to allow people to register, as well as not allow anonymous calls to the Data.&nbsp; The only suggestion on this in the past has been to allow anonymouslogin, and then check every request&nbsp;on the server to see if it should be allowed or not.&nbsp; This seems like an unworkable solution.&nbsp; Surely&nbsp;there must be a better way.</div><div>&nbsp;</div><div>Greg</div>]]>
   </description>
   <pubDate>Wed, 06 Apr 2011 12:57:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10403#10403</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : Greg,You need to have anonymous...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10392#10392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1097" rel="nofollow">robertg</a><br /><strong>Subject:</strong> 2601<br /><strong>Posted:</strong> 05-Apr-2011 at 4:27pm<br /><br />Greg,<br><br>You need to have anonymous access enabled in IIS because otherwise, the user won't even be able to access public resources such as the login and registration pages. The trick is that you specify another directive in your config which requires a (forms) authentication cookie for all pages (or all pages except for login, registration, etc), and redirects the user to a specified location if they don't have it.<br><br>This article on MSDN, although old, should have the information you want http://msdn.microsoft.com/en-us/library/ff647070.aspx. What you're looking for is entirely within the area of IIS administration, so you may be able to save yourself some time by asking a web admin or IT guy to do it.<br><br>-- Robert<br>]]>
   </description>
   <pubDate>Tue, 05 Apr 2011 16:27:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10392#10392</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : I am trying to get Registration...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10351#10351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2601<br /><strong>Posted:</strong> 31-Mar-2011 at 4:48pm<br /><br /><DIV>I am trying to get Registration to work in the Templates.</DIV><DIV>&nbsp;</DIV><DIV>In order to allow a user to register,&nbsp;allowAnonymousLogin must be set to true.</DIV><DIV>&nbsp;</DIV><DIV>But does this not defeat the purpose of having a person register?</DIV><DIV>&nbsp;</DIV><DIV>I know that currently it's an all or nothing choice&nbsp;on allowAnonymousLogin.&nbsp; But I don't want to have to resort to verifying security on every call on&nbsp;the server just so I can allow people to register.&nbsp; It would be great if there were a better way of resolving this.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Thu, 31 Mar 2011 16:48:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2601&amp;PID=10351#10351</guid>
  </item> 
 </channel>
</rss>