Skip to content

ekonbenefits/owin-role-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

owin-role-provider-ekon-fork

Owin middleware to inject role claims into an identity.

Usage

Add this middleware to your Startup.cs (or equivalent) using:

app.UseOwinRoleProvider(new MyRoleProvider())

The Role Provider interface, IRoleProvider, exposes one method GetRolesForUser(IPrincipal identifier). Wrap your role service in it, to allow these roles to be added to the Owin ClaimsIdentity.

About

Role Provider Middleware for Owin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages