GithubHelp home page GithubHelp logo

typecastexception / aspnetrolebasedsecurityexample Goto Github PK

View Code? Open in Web Editor NEW
79.0 24.0 69.0 912 KB

A Simple Example Implementation of Role-Based Identity Management in ASP.NET MVC 5

C# 6.95% CSS 27.69% ASP 0.03% JavaScript 65.34%

aspnetrolebasedsecurityexample's Introduction

ASP.NET Role-Based Security Example

This is an example project to accompany a blog post describing a very basic implementation of Role-Based Security and Identity Account management using ASP.NET MVC 5.

You will 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

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.

The Blog article to accompany this code can be found at Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5

aspnetrolebasedsecurityexample's People

Contributors

xivsolutions avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnetrolebasedsecurityexample's Issues

error there is no db

i download the project and i did nuget restore and the project buils success , but when i running and i try to do ligin ' i got a crach there is no db ,
i resolve the problam

what is role.Role.Name?

hi
in AspNetRoleBasedSecurityExample/AspNetRoleBasedSecurity/Models/IdentityModels.cs file line 77 :
um.RemoveFromRole(userId, role.Role.Name);

what is Role inside role??

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.