GithubHelp home page GithubHelp logo

codebuger88 / aspnetgroupbasedpermissions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from typecastexception/aspnetgroupbasedpermissions

0.0 2.0 0.0 1.4 MB

C# 84.20% CSS 0.65% ASP 0.11% HTML 4.86% JavaScript 10.17%

aspnetgroupbasedpermissions's Introduction

ASP.NET Identity: Implementing Group-Based Permissions

This is an example project to accompany a blog post describing how to extend the ASP.NET MVC 5 Identity system and implement a Group-based permission scheme. Users belong to Groups, and Groups have sets of authorization permissions to exxecute code within the application (using [Authorize]). The article can be found at ASP.NET MVC 5 Identity: Implementing Group-Based Permissions Management Part I

This project builds upon the foundation created by another example, ASP.NET Identity: Extending Identity Roles, covered in the article Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5. You can see in the commit history the basic steps taken to move from the previous project structure to one with a basic, but flexible Group-based security model.

You may need to enable Nuget Package Restore in Visual Studio in order to download and restore Nuget packages during build. If you are not sure how to do this, see Keep Nuget Packages Out of Source Control with Nuget Package Manager Restore Apparrently, this is supposedly not required with Nuget anymore, but in case you need to . . .

You will also need to run Entity Framework Migrations Update-Database command per the article. The migration files are included in the repo, so you will NOT need to Enable-Migrations or run Add-Migration Init.

Getting Started

After you've cloned the project, go ahead and restore the NuGet Packages from the solution or console. Then run the project. You'll be able to log in and administer the groups and roles as well as users with the "[email protected]" user.

Username: [email protected]
Password: Password1

aspnetgroupbasedpermissions's People

Contributors

xivsolutions avatar kjellski avatar rickdaniel avatar

Watchers

James Cloos avatar Kyle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.