<?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 : Security in Cabana App</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Security in Cabana App</description>
  <pubDate>Thu, 11 Jun 2026 12:22:42 -700</pubDate>
  <lastBuildDate>Fri, 14 Dec 2007 15:36:13 -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=596</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>Security in Cabana App : Hi Gus,   1. I&amp;#039;m sorry,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=596&amp;PID=2221#2221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 596<br /><strong>Posted:</strong> 14-Dec-2007 at 3:36pm<br /><br />Hi Gus, <DIV>&nbsp;</DIV><DIV>1.&nbsp; I'm sorry, but at this point the only documentation on Cabana is what's available on our web site and in the threads of this forum.&nbsp; We'd love to have more, but it's still out in the future.&nbsp; For now, you pretty much have to read and understand the Cabana code.&nbsp; This can seem daunting at first but gets easier over time.</DIV><DIV>&nbsp;</DIV><DIV>2.&nbsp; Cabana uses a somewhat different application architecture from the DevForce tutorials and already contains a user authentication/authorization architecture.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Briefly:</DIV><DIV>&nbsp;</DIV><DIV>1.&nbsp; In ShellApplication the CAB/SCSF-supplied implementation of <FONT face="Courier New, Courier, mono">IAuthenticationService</FONT> is replaced with a custom IdeaBlade.Cab implementation (<FONT face="Courier New, Courier, mono">AppAuthenticationService </FONT>from the application's <FONT face="Courier New, Courier, mono">Foundation </FONT>project <FONT face="Courier New, Courier, mono">/Services </FONT>folder)</DIV><DIV>&nbsp;</DIV><DIV>2.&nbsp; <FONT face="Courier New, Courier, mono">IAuthenticationService.Authenticate() </FONT>is invoked by the base CAB Application class on startup.</DIV><DIV>&nbsp;</DIV><DIV>3.&nbsp; <FONT face="Courier New, Courier, mono">Authenticate()</FONT> gets the user's credentials (currently the current principal's Windows id--you could implement your own mechanism such as prompting for username/password).</DIV><DIV>&nbsp;</DIV><DIV>4.&nbsp; It then passes the credentials to the PersistenceManager's <FONT face="Courier New, Courier, mono">Login(</FONT><FONT face="Courier New, Courier, mono">) </FONT>method, as in any DevForce application,&nbsp;where they are sent to the server.</DIV><DIV>&nbsp;</DIV><DIV>5.&nbsp; On the server side, the <FONT face="Courier New, Courier, mono">LoginManager&nbsp;</FONT>(in the application's <FONT face="Courier New, Courier, mono">Model </FONT>project) receives the credentials and is responsible for authenticating and authorizing the user and returning an implementation of <FONT face="Courier New, Courier, mono">IPrincipal</FONT>.</DIV><DIV>&nbsp;</DIV><DIV>6.&nbsp;&nbsp;The Cabana <FONT face="Courier New, Courier, mono">Model </FONT>project&nbsp;provides a sample <FONT face="Courier New, Courier, mono">LoginManager </FONT>implementing role-based security.&nbsp;&nbsp;This mechanism is also included in the skeleton project generated by the IdeaBlade.Cab application wizard.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>7.&nbsp; You're free to modify this implementation as necessary.&nbsp; All that's really needed is to modify <FONT face="Courier New, Courier, mono">GetUserPasswordIdentity() </FONT>and/or <FONT face="Courier New, Courier, mono">GetWindowsIdentity()</FONT> to provide an object&nbsp;implementing the <FONT face="Courier New, Courier, mono">IUser() </FONT>interface.&nbsp; The default implementation uses the <FONT face="Courier New, Courier, mono">SecurityUser </FONT>business object.</DIV><DIV>&nbsp;</DIV><DIV>8.&nbsp; When compiled with the DEBUG symbol defined, the default LoginManager uses a special filter that translates me and Ward to specific userids and everyone else to "guest".&nbsp; You might want to change or disable this method in your app.</DIV><DIV>&nbsp;</DIV><DIV>I hope this gets you moving.&nbsp; Let me know if you need more.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Bill Jensen</DIV><DIV>IdeaBlade</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 14 Dec 2007 15:36:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=596&amp;PID=2221#2221</guid>
  </item> 
  <item>
   <title>Security in Cabana App : Hello: I have introduced IdeaBlade...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=596&amp;PID=2141#2141</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=207" rel="nofollow">gus_mariani</a><br /><strong>Subject:</strong> 596<br /><strong>Posted:</strong> 08-Dec-2007 at 8:47am<br /><br />Hello:<DIV>I have introduced IdeaBlade throught the availbale tutorials. However, when I tried to reproduce the Windows Form tutorial into a Cabana App, I encounetered is quite different.... Is there a tutorial/video with a step-to-step introduction about the Cabana App?</DIV><DIV>It is possible to implement&nbsp;security as described in the Security tutorial in the Cabana App?</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance;</DIV><DIV>G.Mariani</DIV>]]>
   </description>
   <pubDate>Sat, 08 Dec 2007 08:47:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=596&amp;PID=2141#2141</guid>
  </item> 
 </channel>
</rss>