<?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 : ODATA and LoginManager</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : ODATA and LoginManager</description>
  <pubDate>Wed, 13 May 2026 07:51:37 -700</pubDate>
  <lastBuildDate>Mon, 12 Mar 2012 15:17:34 -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=3085</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>ODATA and LoginManager : Hi,That worked, thanks for the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12959#12959</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1374" rel="nofollow">Chrizy</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 12-Mar-2012 at 3:17pm<br /><br />Hi,<div>That worked, thanks for the quick response.</div><div><br></div><div>Chris</div>]]>
   </description>
   <pubDate>Mon, 12 Mar 2012 15:17:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12959#12959</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Hi Chris,Thanks for the sample.In...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12941#12941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 08-Mar-2012 at 5:18pm<br /><br />Hi Chris,<div><br></div><div>Thanks for the sample.</div><div><br></div><div>In your custom LoginManager, you have to get the Authorization header, decode the credential and create your own LoginCredential.</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>public IPrincipal Login(ILoginCredential credential, EntityManager entityManager) {</div><div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; string authHeader = HttpContext.Current.Request.Headers&#091;"Authorization"&#093;;</div><div>&nbsp; &nbsp; &nbsp; var creds = ParseAuthHeader(authHeader);</div><div>&nbsp; &nbsp; &nbsp; credential = new LoginCredential(creds&#091;0&#093;, creds&#091;1&#093;, "");</div></div><div><div>&nbsp; &nbsp; &nbsp; if (credential == null) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throw new LoginException(LoginExceptionType.NoCredentials, "No credentials supplied");</div><div>&nbsp; &nbsp; &nbsp; }</div></div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>}</div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Thu, 08 Mar 2012 17:18:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12941#12941</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Hi Chris,Could you zip up and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12917#12917</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 07-Mar-2012 at 5:08pm<br /><br /><div>Hi Chris,</div><div><br></div>Could you zip up and send me your sample project again so I can take a look? Again, you can use PM if you prefer. Thanks.]]>
   </description>
   <pubDate>Wed, 07 Mar 2012 17:08:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12917#12917</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Thanks that fixed the error, I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12904#12904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1374" rel="nofollow">Chrizy</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 07-Mar-2012 at 1:44am<br /><br /><p ="Ms&#111;normal">Thanks that fixed the error, I have set up a test client to thepass basic authentication header, but when my custom login manager gets calledthe credentials are null. I've tried creating a BasicAuthenticationModule whichcreates an instance of the EnityManager and calls the Login method, and alsoputting the service in a separate folder and setting IIS to use Basic Authentication. In my test environment I'm not using https could this be the problem?</p><p ="Ms&#111;normal">Thanks<br>Chris</p>]]>
   </description>
   <pubDate>Wed, 07 Mar 2012 01:44:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12904#12904</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Hi Chris,Thanks for the project....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12867#12867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 29-Feb-2012 at 8:21pm<br /><br />Hi Chris,<div><br></div><div>Thanks for the project. Here's what's happening.</div><div><br></div><div>You've added some custom properties on the Group and&nbsp;PropertyToSaleOrLet entities that are non-serializable types. You have to add them to the IgnorePropertiesAttribute like below.</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&nbsp; &#091;IgnoreProperties(@"EntityAspect", @"TypeID")&#093;</div><div>&nbsp; public partial class Group : IbEm.Entity {..........}</div></div><div><br></div><div><div>&nbsp; &#091;IgnoreProperties(@"EntityAspect", @"PriceQualifierIDenum")&#093;</div><div>&nbsp; public partial class PropertyToSaleOrLet : IbEm.Entity {......}</div></div><div></pre></td></tr></table></div><div><br></div><div><div style="text-align: left; : rgb251, 251, 253; ">For the time being, you can hook into the code generation for IgnorePropertiesAttribute by overriding the default T4 template. A feature request has been submitted for this to be supported without messing with the code generation.</div><div style="text-align: left; : rgb251, 251, 253; "><br></div><div style="text-align: left; : rgb251, 251, 253; ">See&nbsp;<a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;title=odata-and-ignoreproperties-attribute" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;title=odata-and-<span ="highlight">ignoreproperties</span>-attribute</a>&nbsp;for my response to another customer with the same issue.</div></div>]]>
   </description>
   <pubDate>Wed, 29 Feb 2012 20:21:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12867#12867</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : The DebugLog doesn&amp;#039;t record...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12850#12850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 28-Feb-2012 at 6:20pm<br /><br /><div>The DebugLog doesn't record anything of significance either. Would you mind zipping up your project, upload it somewhere and let me know where to get it? You can PM me if you prefer. Thanks.</div>]]>
   </description>
   <pubDate>Tue, 28 Feb 2012 18:20:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12850#12850</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : uploads/1374/DebugLog.zip    Debug...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12834#12834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1374" rel="nofollow">Chrizy</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 28-Feb-2012 at 2:06am<br /><br /><a href="uploads/1374/DebugLog.zip" target="_blank">uploads/1374/DebugLog.zip</a><div><br></div><div>Debug file attached.</div><div><br></div><div>Thanks</div><div>Chris</div>]]>
   </description>
   <pubDate>Tue, 28 Feb 2012 02:06:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12834#12834</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Hi Chrizy and Thomas,We currently...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12735#12735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 22-Feb-2012 at 12:27pm<br /><br />Hi Chrizy and Thomas,<div><br></div><div>We currently don't have such samples but I've submitted a feature request to provide it in the future.</div><div><br></div><div>Chrizy, if you can provide me with your DebugLog.xml that DevForce generates, I can try and help you with the server error.</div>]]>
   </description>
   <pubDate>Wed, 22 Feb 2012 12:27:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12735#12735</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : I would be also interested in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12729#12729</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1400" rel="nofollow">Thomas</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 21-Feb-2012 at 11:57pm<br /><br />I would be also interested in such an example using ODATA.]]>
   </description>
   <pubDate>Tue, 21 Feb 2012 23:57:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12729#12729</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Hi,Do you have any code examples...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12706#12706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1374" rel="nofollow">Chrizy</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 21-Feb-2012 at 4:53am<br /><br /><font size="2" face="Arial, Helvetica, sans-serif">Hi,</font><div><font size="2" face="Arial, Helvetica, sans-serif">Do you have any code examples showing ODATA being used with a custom Login Manager and&nbsp;<span style=": rgb251, 251, 253; text-align: left; ">Basic Authentication?</span></font></div><div><span style=": rgb251, 251, 253; text-align: left; "><font size="2" face="Arial, Helvetica, sans-serif"><br></font></span></div><div style="text-align: -webkit-auto;"><font size="2" face="Arial, Helvetica, sans-serif"><span style=": rgb251, 251, 253; text-align: left; ">I'm not currently even getting the&nbsp;</span><span style="line-height: normal;">No credentials error when viewing via the&nbsp;browser.</span></font></div><div style="text-align: -webkit-auto;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height: normal;">getting "</span></font>The server encountered an error processing the request. See server logs for more details." and cant see any error logged.</div><div><span style="line-height: normal; "><font size="2" face="Arial, Helvetica, sans-serif"><br></font></span></div><div><span style=": rgb251, 251, 253; text-align: left; "><font size="2" face="Arial, Helvetica, sans-serif">Thanks</font></span></div><div><span style=": rgb251, 251, 253; text-align: left; "><font size="2" face="Arial, Helvetica, sans-serif">Chris</font></span></div>]]>
   </description>
   <pubDate>Tue, 21 Feb 2012 04:53:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12706#12706</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Hi AndreasIn general, to secure...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12024#12024</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 08-Nov-2011 at 10:29am<br /><br /><div>Hi Andreas</div><div><br></div>In general, to secure OData service we can use Forms Authentication (<a href="http://msdn.microsoft.com/en-us/data/gg192996" target="_blank">http://msdn.microsoft.com/en-us/data/gg192996</a>)&nbsp;or Basic Authentication (<a href="http://msdn.microsoft.com/en-us/data/gg192997" target="_blank">http://msdn.microsoft.com/en-us/data/gg192997</a>)&nbsp;where the credentials are passed in the Authorization header of a client request. The credentials in turn will be passed to the IEntityLoginManager.<br><div><br></div><div>Hope this helps.</div>]]>
   </description>
   <pubDate>Tue, 08 Nov 2011 10:29:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12024#12024</guid>
  </item> 
  <item>
   <title>ODATA and LoginManager : Hello,I am building an application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12020#12020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=56" rel="nofollow">antalakas</a><br /><strong>Subject:</strong> 3085<br /><strong>Posted:</strong> 07-Nov-2011 at 2:01pm<br /><br />Hello,<div><br></div><div>I am building an application that implements&nbsp;IEntityLoginManager to provide custom User/Role management.</div><div>I need to add an ODATA service. When i try to get an entity with my odata client, i get an&nbsp;<span ="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: normal; ">IdeaBlade.EntityModel.LoginException, with message :&nbsp;</span><span ="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: normal; ">No credentials supplied.</span></div><div><span ="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: normal; "><br></span></div><div><span ="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: normal; ">I agree that this is true. How can i add credentials using ODATA?</span></div><div><span ="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: normal; "><br></span></div><div><span ="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: normal; ">Andreas</span></div>]]>
   </description>
   <pubDate>Mon, 07 Nov 2011 14:01:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3085&amp;PID=12020#12020</guid>
  </item> 
 </channel>
</rss>