Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
 
Add your own
alternative version

Extending ASP.NET role based Security with Custom Security Module (Permission Based, Page Level Authorization)

, 11 Nov 2011 Ms-PL
This project intends to extend the default ASP.NET role based Security to include Permission Based / Page Level Authorization Layer. Works with both ASP.NET and ASP.NET MVC. Permission rules to Allow/Deny access to website resources (like "Folder/File.aspx" or "Controller/Action") are stored in DB.
AadhaarMS.zip
AadhaarMS
Aadhaar.Data
bin
Debug
Aadhaar.Data.dll
Aadhaar.Data.MS.dll
Castle.Core.dll
Castle.DynamicProxy.dll
Castle.DynamicProxy2.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll
NHibernate.JetDriver.dll
NHibernateProvider.dll
Entity
Components
Mapping
Helper
Properties
Util
ViewModel
Aadhaar.Web
Activities1
Activities2
App_Code
App_Data
AadhaarMS.MDF
AadhaarMS_log.ldf
Bin
Aadhaar.Data.dll
Aadhaar.Data.pdb
Castle.Core.dll
Castle.DynamicProxy.dll
Castle.DynamicProxy2.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll
NHibernate.JetDriver.dll
NHibernateProvider.dll
Controls
css
Global.asax
images
hdrLogo.jpg
i-bb.gif
i-blc.gif
i-brc.gif
i-l.gif
i-r.gif
i-tb.gif
i-tlc.gif
i-trc.gif
img01.jpg
spacer.gif
install
logs
Superadmin
AadhaarMVC.zip
AadhaarMVC
Aadhaar.Data
bin
Debug
Aadhaar.Data.dll
Aadhaar.Data.MS.dll
Castle.Core.dll
Castle.DynamicProxy.dll
Castle.DynamicProxy2.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll
NHibernate.JetDriver.dll
NHibernateProvider.dll
Entity
Components
Mapping
Helper
Properties
Util
ViewModel
Aadhaar.MVC
Aadhaar.MVC.csproj.user
App_Data
AadhaarMS.MDF
AadhaarMS_log.ldf
bin
Aadhaar.Data.dll
Aadhaar.Data.pdb
Aadhaar.MVC.dll
Aadhaar.MVC.pdb
Castle.Core.dll
Castle.DynamicProxy.dll
Castle.DynamicProxy2.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll
NHibernate.JetDriver.dll
NHibernateProvider.dll
Content
images
hdrLogo.jpg
i-bb.gif
i-blc.gif
i-brc.gif
i-l.gif
i-r.gif
i-tb.gif
i-tlc.gif
i-trc.gif
img01.jpg
spacer.gif
Controllers
Global.asax
Models
obj
Debug
Aadhaar.MVC.dll
Aadhaar.MVC.pdb
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
ResolveAssemblyReference.cache
TempPE
Properties
Scripts
Views
Account
Admin
Error
Home
Shared
Aadhaar.suo
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.239
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Aadhaar.Data.Properties {
    using System;
    
    
    /// <summary>
    ///   A strongly-typed resource class, for looking up localized strings, etc.
    ///   This helper class has been taken from http: //www.codeproject.com/KB/dotnet/NhibernateProviders.aspx 
    /// and customized for compatibility with Aadhaar.Data
    /// </summary>
    // This class was auto-generated by the StronglyTypedResourceBuilder
    // class via a tool like ResGen or Visual Studio.
    // To add or remove a member, edit your .ResX file then rerun ResGen
    // with the /str option, or rebuild your VS project.
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    internal class Resources {
        
        private static global::System.Resources.ResourceManager resourceMan;
        
        private static global::System.Globalization.CultureInfo resourceCulture;
        
        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        internal Resources() {
        }
        
        /// <summary>
        ///   Returns the cached ResourceManager instance used by this class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Resources.ResourceManager ResourceManager {
            get {
                if (object.ReferenceEquals(resourceMan, null)) {
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aadhaar.Data.Properties.Resources", typeof(Resources).Assembly);
                    resourceMan = temp;
                }
                return resourceMan;
            }
        }
        
        /// <summary>
        ///   Overrides the current thread's CurrentUICulture property for all
        ///   resource lookups using this strongly typed resource class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Globalization.CultureInfo Culture {
            get {
                return resourceCulture;
            }
            set {
                resourceCulture = value;
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to too many matching applications.
        /// </summary>
        internal static string App_TooManyMatching {
            get {
                return ResourceManager.GetString("App_TooManyMatching", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to check if application exists.
        /// </summary>
        internal static string App_UnableToCheckExists {
            get {
                return ResourceManager.GetString("App_UnableToCheckExists", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to create or load the application.
        /// </summary>
        internal static string App_UnableToCreateOrLoad {
            get {
                return ResourceManager.GetString("App_UnableToCreateOrLoad", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get application.
        /// </summary>
        internal static string App_UnableToGet {
            get {
                return ResourceManager.GetString("App_UnableToGet", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to password answer required for password reset.
        /// </summary>
        internal static string Pwd_AnswerRequiredForReset {
            get {
                return ResourceManager.GetString("Pwd_AnswerRequiredForReset", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to cannot retrieve Hashed passwords.
        /// </summary>
        internal static string Pwd_CannotRetrieveHashed {
            get {
                return ResourceManager.GetString("Pwd_CannotRetrieveHashed", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to cannot unencode a hashed password.
        /// </summary>
        internal static string Pwd_CannotUnencodeHashed {
            get {
                return ResourceManager.GetString("Pwd_CannotUnencodeHashed", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to change password cancelled due to New Password validation failure.
        /// </summary>
        internal static string Pwd_ChangeCancelledDueToNewPassword {
            get {
                return ResourceManager.GetString("Pwd_ChangeCancelledDueToNewPassword", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to incorrect password answer.
        /// </summary>
        internal static string Pwd_IncorrectAnswer {
            get {
                return ResourceManager.GetString("Pwd_IncorrectAnswer", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to user not found, or user is locked out; password not reset.
        /// </summary>
        internal static string Pwd_OpCancelledDueToAccountLocked {
            get {
                return ResourceManager.GetString("Pwd_OpCancelledDueToAccountLocked", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to reset password cancelled due to New Password validation failure.
        /// </summary>
        internal static string Pwd_ResetCancelledDueToNewPassword {
            get {
                return ResourceManager.GetString("Pwd_ResetCancelledDueToNewPassword", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to password reset is not enabled.
        /// </summary>
        internal static string Pwd_ResetNotEnabled {
            get {
                return ResourceManager.GetString("Pwd_ResetNotEnabled", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to password retrieval is not enabled.
        /// </summary>
        internal static string Pwd_RetrievalNotEnabled {
            get {
                return ResourceManager.GetString("Pwd_RetrievalNotEnabled", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to change the password question and answer.
        /// </summary>
        internal static string Pwd_UnableToChangeQandA {
            get {
                return ResourceManager.GetString("Pwd_UnableToChangeQandA", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unsupported password format.
        /// </summary>
        internal static string Pwd_UnsupportedFormat {
            get {
                return ResourceManager.GetString("Pwd_UnsupportedFormat", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to role already exists.
        /// </summary>
        internal static string Role_AlreadyExists {
            get {
                return ResourceManager.GetString("Role_AlreadyExists", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to too many matching roles.
        /// </summary>
        internal static string Role_TooManyMatching {
            get {
                return ResourceManager.GetString("Role_TooManyMatching", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to add users to roles.
        /// </summary>
        internal static string Role_UnableToAddUsersToRoles {
            get {
                return ResourceManager.GetString("Role_UnableToAddUsersToRoles", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to check if role exists.
        /// </summary>
        internal static string Role_UnableToCheckIfExists {
            get {
                return ResourceManager.GetString("Role_UnableToCheckIfExists", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to create role.
        /// </summary>
        internal static string Role_UnableToCreate {
            get {
                return ResourceManager.GetString("Role_UnableToCreate", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to delete role.
        /// </summary>
        internal static string Role_UnableToDelete {
            get {
                return ResourceManager.GetString("Role_UnableToDelete", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to find user in role.
        /// </summary>
        internal static string Role_UnableToFindUserInRole {
            get {
                return ResourceManager.GetString("Role_UnableToFindUserInRole", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to find users in role.
        /// </summary>
        internal static string Role_UnableToFindUsersInRole {
            get {
                return ResourceManager.GetString("Role_UnableToFindUsersInRole", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get role.
        /// </summary>
        internal static string Role_UnableToGet {
            get {
                return ResourceManager.GetString("Role_UnableToGet", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get all roles.
        /// </summary>
        internal static string Role_UnableToGetAllRoles {
            get {
                return ResourceManager.GetString("Role_UnableToGetAllRoles", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get roles for user.
        /// </summary>
        internal static string Role_UnableToGetRolesForUser {
            get {
                return ResourceManager.GetString("Role_UnableToGetRolesForUser", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get users in role.
        /// </summary>
        internal static string Role_UnableToGetUsersInRole {
            get {
                return ResourceManager.GetString("Role_UnableToGetUsersInRole", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to remove users from roles.
        /// </summary>
        internal static string Role_UnableToRemoveUsersFromRoles {
            get {
                return ResourceManager.GetString("Role_UnableToRemoveUsersFromRoles", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to &lt;i&gt;usernames&lt;/i&gt; and &lt;i&gt;roleNames&lt;/i&gt; parameters are not of the same length.
        /// </summary>
        internal static string Role_UserRoleParamsNotSameLength {
            get {
                return ResourceManager.GetString("Role_UserRoleParamsNotSameLength", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to the supplied user is locked out.
        /// </summary>
        internal static string User_IsLockedOut {
            get {
                return ResourceManager.GetString("User_IsLockedOut", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to too many matching users.
        /// </summary>
        internal static string User_TooManyMatching {
            get {
                return ResourceManager.GetString("User_TooManyMatching", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to check if user exists.
        /// </summary>
        internal static string User_UnableToCheckIfExists {
            get {
                return ResourceManager.GetString("User_UnableToCheckIfExists", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to create user.
        /// </summary>
        internal static string User_UnableToCreate {
            get {
                return ResourceManager.GetString("User_UnableToCreate", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to delete user.
        /// </summary>
        internal static string User_UnableToDelete {
            get {
                return ResourceManager.GetString("User_UnableToDelete", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get user.
        /// </summary>
        internal static string User_UnableToGet {
            get {
                return ResourceManager.GetString("User_UnableToGet", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get all users.
        /// </summary>
        internal static string User_UnableToGetAllUsers {
            get {
                return ResourceManager.GetString("User_UnableToGetAllUsers", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get users by email.
        /// </summary>
        internal static string User_UnableToGetByEmail {
            get {
                return ResourceManager.GetString("User_UnableToGetByEmail", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get users by name.
        /// </summary>
        internal static string User_UnableToGetByName {
            get {
                return ResourceManager.GetString("User_UnableToGetByName", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to get number of users currently online.
        /// </summary>
        internal static string User_UnableToGetOnlineNumber {
            get {
                return ResourceManager.GetString("User_UnableToGetOnlineNumber", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to unlock user.
        /// </summary>
        internal static string User_UnableToUnlock {
            get {
                return ResourceManager.GetString("User_UnableToUnlock", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to update user.
        /// </summary>
        internal static string User_UnableToUpdate {
            get {
                return ResourceManager.GetString("User_UnableToUpdate", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to update failure count and window start.
        /// </summary>
        internal static string User_UnableToUpdateFailureCount {
            get {
                return ResourceManager.GetString("User_UnableToUpdateFailureCount", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to update last activity date.
        /// </summary>
        internal static string User_UnableToUpdateLastActivityDate {
            get {
                return ResourceManager.GetString("User_UnableToUpdateLastActivityDate", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to unable to update last login date.
        /// </summary>
        internal static string User_UnableToUpdateLastLoginDate {
            get {
                return ResourceManager.GetString("User_UnableToUpdateLastLoginDate", resourceCulture);
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)

Share

About the Author

amitthk
Software Developer (Senior)
Singapore Singapore
I love programming, reading, and meditation. I like to explore management and productivity.
Follow on   Twitter

| Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 12 Nov 2011
Article Copyright 2011 by amitthk
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid