<?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 : [Solved]Role based (Form) Authentication changes</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : [Solved]Role based (Form) Authentication changes</description>
  <pubDate>Thu, 11 Jun 2026 18:09:19 -700</pubDate>
  <lastBuildDate>Fri, 21 Sep 2007 16:22:42 -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=446</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>[Solved]Role based (Form) Authentication changes : Tx. I will give it a try on Monday....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1287#1287</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 4:22pm<br /><br />Tx. I will give it a try on Monday.]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 16:22:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1287#1287</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : It may be a &amp;#039;typo&amp;#039;,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1286#1286</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 3:34pm<br /><br />It may be a 'typo', but the Roles tag needs to be inside ModuleInfo<DIV><FONT color=#0000ff size=2><BR>&lt;</FONT><FONT color=#a31515 size=2>ModuleInfo</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>AssemblyFile</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>Company.App.Module.dll</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;</FONT><FONT color=#a31515 size=2>Roles</FONT><FONT color=#0000ff size=2>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</FONT><FONT color=#a31515 size=2>Role</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>Allow</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>Chuck</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/</FONT><FONT color=#a31515 size=2>Roles</FONT><FONT color=#0000ff size=2>&gt;<BR>&lt;/</FONT><FONT color=#a31515 size=2>ModuleInfo</FONT><FONT color=#0000ff size=2>&gt;</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 15:34:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1286#1286</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : I have one problem.  The roles...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1285#1285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 3:25pm<br /><br /><DIV>I have one problem.</DIV><DIV>&nbsp;</DIV><DIV>The roles are getting stuffed but not implemented.</DIV><DIV>&nbsp;</DIV><DIV>When I remove <FONT color=#008000 size=2>&#091;DebuggerNonUserCode&#093; <FONT color=#000000>from Authenticate I am able to trace and see that it stuffs roles. But it isn't implementing my rules.</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>My profile Catalog has the following.</FONT></DIV><FONT color=#0000ff size=2><P>&lt;</FONT><FONT color=#a31515 size=2>Section</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>Name</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>SecurityModule</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>&gt;</P><P>&lt;</FONT><FONT color=#a31515 size=2>Dependencies</FONT><FONT color=#0000ff size=2>&gt;</P><P>&lt;</FONT><FONT color=#a31515 size=2>Dependency</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>Name</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>Foundation</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2> /&gt;</P><P>&lt;/</FONT><FONT color=#a31515 size=2>Dependencies</FONT><FONT color=#0000ff size=2>&gt;</P><P>&lt;</FONT><FONT color=#a31515 size=2>Modules</FONT><FONT color=#0000ff size=2>&gt;</P><P>&lt;</FONT><FONT color=#a31515 size=2>ModuleInfo</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>AssemblyFile</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>LOC.CEMS.SecurityModule.dll</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2> /&gt;</P><P>&lt;</FONT><FONT color=#a31515 size=2>Roles</FONT><FONT color=#0000ff size=2>&gt;</P><P>&lt;</FONT><FONT color=#a31515 size=2>Role</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>Allow</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>Chuck</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>/&gt;</P><P>&lt;/</FONT><FONT color=#a31515 size=2>Roles</FONT><FONT color=#0000ff size=2>&gt;</P><P>&lt;/</FONT><FONT color=#a31515 size=2>Modules</FONT><FONT color=#0000ff size=2>&gt;</P><P>&lt;/</FONT><FONT color=#a31515 size=2>Section</FONT><FONT color=#0000ff size=2>&gt;</P><DIV></DIV><P><FONT color=#000000>Chuck doesn't exist as a role so I should never see the module correct?</FONT></FONT></P>]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 15:25:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1285#1285</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : GetCredential() is in the AppAuthenticationService...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1279#1279</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> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 2:00pm<br /><br />GetCredential() is in the AppAuthenticationService in your Foundation project that already has a reference to System.Windows.Forms.&nbsp; It's not part of the model project.]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 14:00:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1279#1279</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : Since we want to seperate module...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1276#1276</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 1:42pm<br /><br />Since we want to seperate module from presentation. Where do you recommend putting the LoginForm. I don't really want to create a ref in the model project of windows.forms unless it is really necessary.]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 13:42:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1276#1276</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : Thanks again.  I tried to put...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1271#1271</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 12:19pm<br /><br />Thanks again.<DIV>&nbsp;</DIV><DIV>I tried to put the form implementation in there like I did in the last Cabana release but I must have did something wrong. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 12:19:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1271#1271</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : Yes, in this version of Cabana,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1270#1270</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> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 12:04pm<br /><br />Yes, in this version of Cabana, Ward has factored client-side authentication into the AppAuthenticationService, implementing IAuthentication service.&nbsp; It's in the Foundation project.<DIV>&nbsp;</DIV><DIV>IAuthentication service exposes one method, Authenticate(), that is invoked at application startup.&nbsp; This calls Login() to first get the user's credentials, then attempt to login via the persistence manager:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;summary&gt;</FONT><FONT color=#008000 size=2>Login this manager.</FONT><FONT color=#808080 size=2>&lt;/summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>protected</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>virtual</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> Login(</FONT><FONT color=#008080 size=2>PersistenceManager</FONT><FONT size=2> pManager) {</P><P></FONT><FONT color=#008080 size=2>ILoginCredential</FONT><FONT size=2> aCredential = GetCredential();</P><P>Login(pManager, aCredential);</P><P>}</P></FONT></DIV><DIV>&nbsp;</DIV><DIV>In GetCredential() we see:</DIV><DIV>&nbsp;</DIV><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;summary&gt;</FONT><FONT color=#008000 size=2>Get the credential for this user.</FONT><FONT color=#808080 size=2>&lt;/summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;remarks&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> This implementation only knows how to get a Windows Credential;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> see </FONT><FONT color=#808080 size=2>&lt;see cref="GetWindowsCredential"/&gt;</FONT><FONT color=#008000 size=2>.</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;/remarks&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>protected</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>virtual</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>ILoginCredential</FONT><FONT size=2> GetCredential() {</P><P></FONT><FONT color=#008080 size=2>ILoginCredential</FONT><FONT size=2> credential = GetWindowsCredential();</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (credential == </FONT><FONT color=#0000ff size=2>null</FONT><FONT size=2>) {</P><P></FONT><FONT color=#008000 size=2>// We don't have an alternative way to get the credential</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>throw</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>InvalidOperationException</FONT><FONT size=2>(</FONT><FONT color=#800000 size=2>"Windows user is not authenticated."</FONT><FONT size=2>);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> credential;</P><P>}</P><DIV></DIV><P>It is here that you could write code to display a login form and create an object implementing the DevForce ILoginCredential interface.&nbsp; The class IdeaBlade.Persistence.LoginCredential is the base implementation of this interface.</P><DIV></DIV>On the server side, the credentials are passed to the Login() method of the LoginManager (in the Model project).&nbsp; There, the method GetAppIdentity() checks for a non-empty user name (an empty user name signals that Windows authentication should be used) and invokes GetUserPasswordIdentity():<DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> Get user based on user LoginName and password </P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;/summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;param name="pCredential"&gt;</FONT><FONT color=#008000 size=2>Login credential.</FONT><FONT color=#808080 size=2>&lt;/param&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;param name="pManager"&gt;</FONT><FONT color=#008000 size=2>PersistenceManager for retrieving user.</FONT><FONT color=#808080 size=2>&lt;/param&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;returns&gt;</FONT><FONT color=#008000 size=2>Identity built based on lookup of user's LoginName and password.</FONT><FONT color=#808080 size=2>&lt;/returns&gt;</P></FONT><FONT size=2><P>&#091;</FONT><FONT color=#008080 size=2>DebuggerNonUserCode</FONT><FONT size=2>&#093; </FONT><FONT color=#008000 size=2>// Let client catch exceptions</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>static</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>AppIdentity</FONT><FONT size=2> GetUserPasswordIdentity(</FONT><FONT color=#008080 size=2>ILoginCredential</FONT><FONT size=2> pCredential, </FONT><FONT color=#008080 size=2>PersistenceManager</FONT><FONT size=2> pManager) {</P><P></FONT><FONT color=#008080 size=2>IUser</FONT><FONT size=2> aUser = </FONT><FONT color=#008080 size=2>SecurityUser</FONT><FONT size=2>.GetUserByCredential(pManager, pCredential);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>AppIdentity</FONT><FONT size=2>(aUser.FullName, aUser.Id, </FONT><FONT color=#800000 size=2>"UserPassword"</FONT><FONT size=2>);</P><P>}</P></FONT>Here we must&nbsp;supply an implementation of IUser from somewhere.&nbsp; In Cabana (and wizard-based applications), we rely on the existence of an entity in the model called SecurityUser that has a static factory method GetUserByCredential().&nbsp; In the Cabana implementation, this method&nbsp;retrieves the user from the database by username and password.&nbsp; You can provide code that authenticates the user and returns an implementation of IUser.</DIV><DIV>&nbsp;</DIV><DIV>Back in the Login(credential, pm) method of&nbsp;LoginManager, once the user is authenticated and we have an AppIdentity object, GetUserRoles() is invoked and a Principal object created:</DIV><FONT size=2></FONT><FONT color=#008080 size=2><FONT size=2><P></FONT><FONT color=#0000ff size=2>public</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>IPrincipal</FONT><FONT size=2> Login(</FONT><FONT color=#008080 size=2>ILoginCredential</FONT><FONT size=2> pCredential, </FONT><FONT color=#008080 size=2>PersistenceManager</FONT><FONT size=2> pManager) {</P><P></FONT>AppIdentity</FONT><FONT size=2> identity = GetAppIdentity(pCredential, pManager);</P><P></FONT><FONT color=#008080 size=2>String</FONT><FONT size=2>&#091;&#093; roles = GetUserRoles(pManager, identity);</P><P></FONT><FONT color=#008080 size=2>IPrincipal</FONT><FONT size=2> principal = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>GenericPrincipal</FONT><FONT size=2>(identity, roles);</P><DIV></DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>In GetUserRoles() you need to provide the authorized roles for the user as an array of strings:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> Get the user's roles</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;/summary&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;param name="pManager"&gt;</FONT><FONT color=#008000 size=2>PersistenceManager for retrieving roles from persistent storage.</FONT><FONT color=#808080 size=2>&lt;/param&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#808080 size=2>///</FONT><FONT color=#008000 size=2> </FONT><FONT color=#808080 size=2>&lt;param name="pIdentity"&gt;</FONT><FONT color=#008000 size=2>Identity of the user who has the roles.</FONT><FONT color=#808080 size=2>&lt;/param&gt;</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>static</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>string</FONT><FONT size=2>&#091;&#093; GetUserRoles(</FONT><FONT color=#008080 size=2>PersistenceManager</FONT><FONT size=2> pManager, </FONT><FONT color=#008080 size=2>AppIdentity</FONT><FONT size=2> pIdentity) {</P><P></FONT><FONT color=#008000 size=2>// Todo: Get the roles via the UserId in the identity.</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// pIdentity.AuthenticationType may figure in role determination.</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>string</FONT><FONT size=2>&#091;&#093; { };</P><P>}</P><DIV>These will be placed in the Principal object and returned to the client, where the Principal will be set as the user of the application.</DIV><DIV>&nbsp;</DIV><DIV>By placing </DIV><DIV>&nbsp;</DIV><DIV>&lt;Roles&gt;</DIV><DIV>&nbsp;&nbsp;&nbsp; &lt;Role Allow="rolename"/&gt;</DIV><DIV>&lt;/Role&gt;</DIV><DIV>&nbsp;</DIV><DIV>tags within Modules in the ProfileCatalog.xml file, you cause CAB to check the user's roles &#091;via IPrincipal.IsInRole()&#093; before loading the module.</DIV><DIV>&nbsp;</DIV><DIV>You are also free to include role based security to restrict functionality within your code.&nbsp; See:</DIV><DIV>&nbsp;</DIV><DIV><a href="http://msdn2.microsoft.com/en-us/library/aa720542%28VS.71%29.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/aa720542(VS.71).aspx</A></DIV><DIV>&nbsp;</DIV><DIV>Hope this answers your questions.</DIV><DIV>&nbsp;</DIV><DIV>Bill J</FONT></FONT></DIV></DIV></FONT>]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 12:04:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1270#1270</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : I am using Forms so I have to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1268#1268</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 9:43am<br /><br />I am using Forms so I have to be able to pass the UserName and Password to the AuthenticationService. <DIV>&nbsp;</DIV><DIV>I can't figure out how to do that. </DIV><DIV>&nbsp;</DIV><DIV>In the last version of Cabana it was handled in the LoginClientCore.</DIV>]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 09:43:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1268#1268</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : Yes, I am using Windows Authentication,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1267#1267</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 21-Sep-2007 at 9:40am<br /><br />Yes, I am using Windows Authentication, but the roles have to come from somewhere.&nbsp; The GetUserRoles method is where you would do that.&nbsp; I am guessing that your roles are stored in the database.&nbsp; You&nbsp;would set up the script to retrieve the assigned roles as a string collection&nbsp;from your table for the user.&nbsp; Not sure if this actually helps you (I hope it does), but I thought I'd throw my 2 cents in.&nbsp; Btw, I don't think LoginManager is limited to Windows Authentication.]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 09:40:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1267#1267</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : I&amp;#039;ll respond to this tomorrow.  Bill...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1261#1261</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> 446<br /><strong>Posted:</strong> 20-Sep-2007 at 7:33pm<br /><br />I'll respond to this tomorrow.<DIV>&nbsp;</DIV><DIV>Bill J.</DIV>]]>
   </description>
   <pubDate>Thu, 20 Sep 2007 19:33:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1261#1261</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : From what I understand from your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1260#1260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 20-Sep-2007 at 6:26pm<br /><br />From what I understand from your previous thread; you are using Windows Authentication.<DIV>&nbsp;</DIV><DIV>I am using form. I need to provide the input.</DIV>]]>
   </description>
   <pubDate>Thu, 20 Sep 2007 18:26:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1260#1260</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : Check out the LoginManager of...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1259#1259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 20-Sep-2007 at 5:29pm<br /><br />Check out the LoginManager of the model project.&nbsp; I had to implement the GetUserRoles method to get my authentication to work.]]>
   </description>
   <pubDate>Thu, 20 Sep 2007 17:29:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1259#1259</guid>
  </item> 
  <item>
   <title>[Solved]Role based (Form) Authentication changes : I was able to use role based authentication...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1257#1257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 446<br /><strong>Posted:</strong> 20-Sep-2007 at 2:43pm<br /><br />I was able to use role based authentication fairly easily on the last Cabana release. But, it seems that authentication has change from LoginClientCore to a Service. <DIV>&nbsp;</DIV><DIV>I have created a login form. And need to verify the user. AppAuthentication does Windows authentication. I am trying to figure out how to pass my username and password to the AppAuthenticationService to validate the user.</DIV><DIV>&nbsp;</DIV><DIV>I added another Authenticate(string username, string password). And in my form I attempt, not sure if it is correct, to get the AppAuthenticationService using :</DIV><FONT size=2><P>&#091;</FONT><FONT color=#2b91af size=2>ServiceDependency</FONT><FONT size=2>&#093;</P><DIV>p</FONT><FONT color=#0000ff size=2>ublic</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>IAuthenticationService</FONT><FONT size=2> AuthenticationService { </FONT><FONT color=#0000ff size=2>set</FONT><FONT size=2> { mAuthenticationService = </FONT><FONT color=#0000ff size=2>value</FONT><FONT size=2>; } }</DIV><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>IAuthenticationService</FONT><FONT size=2> mAuthenticationService;</P><DIV></DIV><P>But of course it doesn't get my implementation of the service. I see in the ShellApp.cs filwer where it creates the service. But I am probably unsuccessful in getting that service. </P><DIV></DIV><DIV></DIV>Can you guys help?</FONT> <span style="font-size:10px"><br /><br />Edited by orcities - 24-Sep-2007 at 7:55am</span>]]>
   </description>
   <pubDate>Thu, 20 Sep 2007 14:43:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=446&amp;PID=1257#1257</guid>
  </item> 
 </channel>
</rss>