<?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 16:58:55 -700</pubDate>
  <lastBuildDate>Thu, 27 Jan 2011 06:39:51 -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=2461</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 : Glad to hear that works for you! ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9812#9812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2461<br /><strong>Posted:</strong> 27-Jan-2011 at 6:39am<br /><br />Glad to hear that works for you!<br>]]>
   </description>
   <pubDate>Thu, 27 Jan 2011 06:39:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9812#9812</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : Well, here is what I came up with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9807#9807</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> 2461<br /><strong>Posted:</strong> 26-Jan-2011 at 4:19pm<br /><br /><P>Well, here is what I came up with that works so far.&nbsp; Basically, I allow anon access, and then check the entity type&nbsp;as follows:</P><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">class</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">QueryInterceptor</SPAN>&nbsp;:&nbsp;<SPAN style="COLOR: #2b91af">EntityServerQueryInterceptor</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">protected</SPAN>&nbsp;<SPAN style="COLOR: blue">override</SPAN>&nbsp;<SPAN style="COLOR: blue">bool</SPAN>&nbsp;AuthorizeQuery()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">if</SPAN>&nbsp;(<SPAN style="COLOR: blue">this</SPAN>.Principal.Identity.IsAuthenticated)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">return</SPAN>&nbsp;<SPAN style="COLOR: blue">true</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">else</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">if</SPAN>&nbsp;(<SPAN style="COLOR: blue">this</SPAN>.Query.ElementType&nbsp;==&nbsp;<SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">menuentity</SPAN>))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">return</SPAN>&nbsp;<SPAN style="COLOR: blue">true</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">return</SPAN>&nbsp;<SPAN style="COLOR: blue">false</SPAN>;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;}</PRE></DIV>]]>
   </description>
   <pubDate>Wed, 26 Jan 2011 16:19:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9807#9807</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : There are a few approaches you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9805#9805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2461<br /><strong>Posted:</strong> 26-Jan-2011 at 2:24pm<br /><br />There are a few approaches you could do.<br><br>On your custom User class you could have an IsGuest property, or something similar. When the app starts up, you could log in with null credentials, or some other way of letting the LoginManager know it's a guest user. Then in your query interceptors, you could only allow/deny requests based on the property. <br><br>There is a chapter in the manual that explains it a bit better.<br>http://www.ideablade.com/CommonProductDocs/DevForce2010DevelopersGuide/DevForce2010DevelopersGuide.pdf<br>Page 307-308<br>]]>
   </description>
   <pubDate>Wed, 26 Jan 2011 14:24:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9805#9805</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : Hmmm, interesting idea. I hadn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9804#9804</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> 2461<br /><strong>Posted:</strong> 26-Jan-2011 at 2:20pm<br /><br />Hmmm, interesting idea.&nbsp; I hadn't thought of that.<DIV>&nbsp;</DIV><DIV>Do you mean create a user say "DefaultUser" &nbsp;and then programatically log&nbsp;the user on when the app first starts up?&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>By the way, it's good to see another DevForce here in Dallas!</DIV><DIV>&nbsp;</DIV><DIV>Greg</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 26 Jan 2011 14:20:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9804#9804</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : Greg, why not do something like...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9803#9803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2461<br /><strong>Posted:</strong> 26-Jan-2011 at 2:04pm<br /><br />Greg, why not do something like this, setup a guest user, and then use query interceptors to only allow access to certain entities for that user.<br><br><br>]]>
   </description>
   <pubDate>Wed, 26 Jan 2011 14:04:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9803#9803</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : OK, thanks very much.  Greg </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9800#9800</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> 2461<br /><strong>Posted:</strong> 26-Jan-2011 at 10:06am<br /><br />OK, thanks very much.<DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Wed, 26 Jan 2011 10:06:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9800#9800</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : Generally only one IEntityLoginManager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9795#9795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2461<br /><strong>Posted:</strong> 26-Jan-2011 at 9:17am<br /><br />Generally only one IEntityLoginManager is supported within an application, which means that the same authentication is used everywhere, for all EntityManagers. <DIV>&nbsp;</DIV><DIV>If using your own IEntityLoginManager you can control what it accepts as credentials - so you can write it to accept no credentials (or guest credentials) and then also real credentials.&nbsp; You can also add Authorization attributes and other authorization checks on server side code to ensure that only the correct type of users perform certain actions.</DIV><DIV>&nbsp;</DIV><DIV>There's also the CompositionContext, which does allow you to have multiple IEntityLoginManager instances, with metadata or filters&nbsp;determining which instance should be used for a given context.&nbsp;&nbsp; The CompositionContext is an argument to the EntityManager, so&nbsp;different EMs can have their own context.&nbsp; There's a writeup&nbsp;in the DevForce Resource Center at <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/AdvPersist_Compositi&#111;nC&#111;ntext" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/AdvPersist_CompositionContext</A>&nbsp;which has a better explanation.&nbsp; (This page will likely move within the next few days, but a search of the DRC for "CompositionContext" should find it.)&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 26 Jan 2011 09:17:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9795#9795</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : Hi Kim,  The metadata IS accessed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9771#9771</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> 2461<br /><strong>Posted:</strong> 24-Jan-2011 at 6:46pm<br /><br />Hi Kim,<DIV>&nbsp;</DIV><DIV>The metadata IS accessed through Dev-Force.&nbsp; So I need to be able to access data&nbsp; while the user is a "guest" before he logs in.&nbsp; But I don't want all data to be exposed to guests, only some of it.</DIV><DIV>&nbsp;</DIV><DIV>I have two different Entity Managers, one for the metadata entities, and another for everything else.&nbsp; If there was a way to require authentication on one, but not for the other MetaDataEntityManager, that would be ideal.</DIV><DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Mon, 24 Jan 2011 18:46:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9771#9771</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : The AllowAnonymousLogin determines...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9767#9767</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2461<br /><strong>Posted:</strong> 24-Jan-2011 at 12:26pm<br /><br />The AllowAnonymousLogin determines whether "guest" users can login to your application to use DevForce services such as query and save.&nbsp; It doesn't actually have anything to do with the "Anonymous Authentication" setting within IIS.&nbsp; So, if your metadata download is not performed by DevForce proper, then you should be able to do this if your IIS authorization/authentication settings allow it.]]>
   </description>
   <pubDate>Mon, 24 Jan 2011 12:26:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9767#9767</guid>
  </item> 
  <item>
   <title>AllowAnonymousLogIn : In my config file, I have these...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9755#9755</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> 2461<br /><strong>Posted:</strong> 22-Jan-2011 at 7:39pm<br /><br />In my config file, I have these settings.&nbsp; This works fine.&nbsp; However, I have a need to have both allowAnonymousLogin to be both true and false.&nbsp; In other words, I have metadata that I would like to download when the site is first accessed, before the user logs in.&nbsp; The once logged in, other data is gotten. Is there a way to do both?<DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Greg</DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">objectServer</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</SPAN><SPAN style="COLOR: #a31515">serverSettings</SPAN><SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">useAspNetSecurityServices</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">true</SPAN>"<SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">loginManagerRequired</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">true</SPAN>"<SPAN style="COLOR: blue">&nbsp;</SPAN><SPAN style="COLOR: red">allowAnonymousLogin</SPAN><SPAN style="COLOR: blue">=</SPAN>"<SPAN style="COLOR: blue">false</SPAN>"<SPAN style="COLOR: blue">&nbsp;/&gt;</SPAN><BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</SPAN><SPAN style="COLOR: #a31515">objectServer</SPAN><SPAN style="COLOR: blue">&gt;</SPAN></DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue"></SPAN>&nbsp;</PRE>]]>
   </description>
   <pubDate>Sat, 22 Jan 2011 19:39:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2461&amp;PID=9755#9755</guid>
  </item> 
 </channel>
</rss>