﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - How to Use Crosslight with Existing Login Entities or Tables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-Existing-Login-Entities-or-Tables/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to Use Crosslight with Existing Login Entities or Tables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-Existing-Login-Entities-or-Tables/</link><pubDate>Tue, 15 Mar 2016 14:11:03 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;&lt;p&gt;The usage in the client can be found in the AppFramework which source code is publicly available. You can look deeper into the&amp;nbsp;&lt;a href="http://git.intersoftsolutions.com/projects/CROS/repos/frameworks/browse/Intersoft.AppFramework/Users.Infrastructure/UserRepository.cs" target="_blank"&gt;User.Infrastructure\UserService.cs&lt;/a&gt;&amp;nbsp;which show the current implementation that works out-of-the-box in Crosslight. Feel free to extend the class, override the members as necessary to suit your needs, and register it through the dependency container.&lt;/p&gt;&lt;p&gt;With regards to the documentation, the key concept and class members for user management can be found&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/User+Management+and+Authentication" target="_blank"&gt;here&lt;/a&gt;, although the page doesn't provide a guided-walkthrough on extending the class. As you may have aware, our team has added numerous walkthrough-style guides over the past months which you can find in both our&amp;nbsp;&lt;a href="http://blog.intersoftsolutions.com" target="_blank"&gt;blog&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/Getting+Started+with+Crosslight" target="_blank"&gt;Developer Center&lt;/a&gt;.&amp;nbsp;We'll keep hearing feedback from our customers and write guides based on the highly requested/asked topics.&lt;/p&gt;&lt;p&gt;Back to the original topic, if your application only use the Login or Logout method of the service, it should be safeto simply remove the methods in the server-side, and leave the implementation in AppFramework as is (considering they're not used).&lt;/p&gt;&lt;p&gt;Please let us know if you have any specific questions regarding the extensibility.&lt;/p&gt;&lt;p&gt;Hope this helps,&lt;/p&gt;</description></item><item><title>How to Use Crosslight with Existing Login Entities or Tables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-Existing-Login-Entities-or-Tables/</link><pubDate>Tue, 15 Mar 2016 13:49:57 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>See... this is just one sample of undocument procedures. Extensibility of the client apps such as of those implemented for iOS, Android, Phone is nowhere to be found. Because these templates are tightly-coupled with the Crosslight binaries. In which part of the client framework are those controllers being consumed? In this instance, how would you modify the client app implementation to cater customizations such as these when you don't know where to start? Are we suppose to extend the AppFramework? It's like with Crosslight... just get the samples and you're on your own. I hope you can sense our frustration here. If you can guide us to the right path, then that would be nice.&lt;br&gt;</description></item><item><title>How to Use Crosslight with Existing Login Entities or Tables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-Existing-Login-Entities-or-Tables/</link><pubDate>Tue, 15 Mar 2016 07:59:26 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;&lt;p&gt;The methods in IdentityController are basically needed if they are consumed in the client, which is the case if the business template is purely used. However, if you've modified the client to certain extent, and you can ensure thatthe server methods are no longer consumed in the client, then it's safe to remove the methods in IdentityController.&lt;/p&gt;&lt;p&gt;When using custom tables, you're free to modify the IdentityController to suit your business requirements. For instance, you can create your own instance of context associated to your database and perform user login checking with your own logic. The most important part is probably the BasicAuthHttpModule class which handles the actualprocess of dispatching and authenticating the client request (particularly to access controller methods with Authorize attribute). So, to answer your second question, there are no necessary methods to retain as long as they're notconsumed in the client.&lt;/p&gt;&lt;p&gt;Let me know if you have any other questions.&lt;/p&gt;&lt;p&gt;Hope this helps,&lt;/p&gt;</description></item><item><title>How to Use Crosslight with Existing Login Entities or Tables</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-Existing-Login-Entities-or-Tables/</link><pubDate>Tue, 15 Mar 2016 02:42:51 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;We don't want to use the existing login or authentication mechanism based on the Business template for the Web API. We only want to use a simple validation for username and encrypted password. We understand that there is a need to pass &lt;span style="font-weight: bold;"&gt;IdentityUserLogin &lt;/span&gt;(e.g. public virtual User GetUserProfile(IdentityUserLogin identity))&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;on some methods for the IdentityController, which is part of the Microsoft.AspNet.Identity package. However, we don't need this and we want the IdentityController to make use of custom Account/User table from an existing database only. We can't create this from scratch, so we need to implement a solution where we can use the existing login credentials from an old design. We can modify a few methods that is being exposed on the IdentityController, but we can't do the same for those methods with parameters that contain models from Microsoft.AspNet.Identity package. &lt;br&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Is it safe to just remove these methods and retain ONLY what's necessary? &lt;br&gt;&lt;/li&gt;&lt;li&gt;When using a custom Account/User table, are there necessary methods that should remain on IdentityController? If so, please advise which of those methods should remain.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Thanks!&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>