Please enable JavaScript.
Coggle requires JavaScript to display documents.
AUTH_1 - Coggle Diagram
AUTH_1
OPTIONS
No-Auth
Individual
User
Accounts
Organizational
Windows-Auth
SEEDING
Guest
User
Register
AccountController.cs
Temporary
Before-SignIn
In-Register
roleStore =
new RoleStore<IdentityRole>(..)
new ApplicationDbContext()
roleMgr =
new RoleManager<IdentityRole>(..)
roleStore
await
roleMgr.CreateAsync(..)
new IdentityRole("Can..")
UserManager.AddToRoleAsync(..)
user.Id
Can.."
Admin
User
Register
Remove
4-Lines
ASP.NET-IDENTITY
Architecture
DomainCls
IdentityUser
Role
API/Service
UserMgr
RoleMgr
SignInMgr
Persistance
UserStore
RoleStore
Internally
Communicates
DomainCls
APICls
Includes
IdentityUser
IdentityDbContext
Used-In
IdentityModels.cs
AccountController.cs
Actions
Register
ModelState.IsValid
user =
new AppUser {..}
await
UserManger.CreateAsync(...)
user
model.Password
If-Success
SignIn
Login
LogOff
RESTRICTING
Attribute
[Authorize]
Apply
Action
Controller
Globally
Globally
App_Start/FilterConfig.cs
filters.Add(..)
new AuthorizeAttribute()
Making
Accessible
[AllowAnonymous]