Release 1.1.0

Rating:        Based on 1 rating
Reviewed:  1 review
Downloads: 846
Change Set: ead276b1e119
Released: Apr 30, 2011
Updated: Oct 12, 2011 by ekhor
Dev status: Stable Help Icon

Recommended Download

Application MRPLibrary
application, 57K, uploaded Apr 30, 2011 - 342 downloads

Other Available Downloads

Documentation MRPLibrary Documentation
documentation, 690K, uploaded Apr 30, 2011 - 148 downloads
Application EntityFramework 4.1
application, 766K, uploaded Apr 30, 2011 - 70 downloads
Example Sample MvcApplication
example, 893K, uploaded Apr 30, 2011 - 118 downloads
Source Code Solution with Samples
source code, 32070K, uploaded Sep 10, 2011 - 117 downloads
Application MRPLibrary (Multiple Application)
application, 63K, uploaded Oct 12, 2011 - 51 downloads

Release Notes

In this release of the MRPLibrary two main features have be implemented:
  • Creation of the underlying database by the library if none exist
  • Support for default roles which the library ensures are always present in the database. If they don't exist the library creates them
The database creation feature is now automatic while the defaults roles can be enables by adding the attribute defaultRoles to the roles configuration with values as shown below:

<add name="PortalRoleProvider" 
         type="AspAuthentication.Providers.PortalRoleProvider,AspAuthentication" 
         connectionStringName="ApplicationServices" 
         applicationName="TestApplication"  
         createDatabaseObjects="true" 
         defaultRoles="administrator;user;guest;moderator" />

administrator;user;guest;moderator are sample role names.

Special credit goes to JayKnowsit for suggesting these features

This release utilizes the release version of EntityFramework 4.1 for underlying database access which can be downloaded from this page. The API Documentation provides a complete documentation of the library's source code. This is now the recommended release.

Following the discussion with JayKnowsit, I have extended the security library to support scenarios dissussed in the thread. The extended version for these scenario can be downloaded via the MRPLibrary (Multiple Application) link on this page. Configuration is the same as before. However to support this scenarios, modify the configuration file to:

        <add 	name="[MEMEBERSHIP PROVIDER NAME]" 
				type="AspAuthentication.Providers.PortalMembershipProvider" 
				connectionStringName="[CONNECTION NAME]"
				enablePasswordRetrieval="false" 
				enablePasswordReset="true" 
				requiresQuestionAndAnswer="false" 
				requiresUniqueEmail="false"
				maxInvalidPasswordAttempts="5" 
				minRequiredPasswordLength="6" 
				minRequiredNonalphanumericCharacters="0" 
				passwordAttemptWindow="10"
				applicationName="[APPLICATION NAME]"  
				passwordFormat="Hashed" 
				createDatabaseObjects="true" 
				multipleApplication="true"
		/>


The new entry is multipleApplication. When set to true, the library will not raise a duplication username exception. Rather it will add the user to the application specified via applicationName. If that application name does not exist, it will be added to the system. There is now a domain object within the library called Application.

PortalMembershipProvider has also be updated to provide methods to check if a user belongs to an application add a user to an application and create new applications. The login operation will now succeed only if the user has the correct credentials and belong to the application specified via the applicationName.

Reviews for this release

     
easy to identify related to achieve its aims and objectives.
by Jerusalem2020J2IL on Jul 21, 2016 at 7:50 PM