© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. FreemanPro ASP.NET Core Identity https://doi.org/10.1007/978-1-4842-6858-2_19

19. Creating a Role Store

Adam Freeman1  
(1)
London, UK
 
In this chapter, I create and use a role store. As earlier chapters have shown, Identity doesn’t need a role store to use roles, and the use of a role store is entirely optional and the features that are provided are not needed in most projects. That said, a role store can be a useful way to ensure that roles are used consistently. Table 19-1 puts role stores in context.
Table 19-1.

Putting Roles Stores in Context

Question

Answer

What is it?

The role store allows additional data to be associated with roles.

Why is it useful?

The ...

Get Pro ASP.NET Core Identity: Under the Hood with Authentication and Authorization in ASP.NET Core 5 and 6 Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.