mo-esmp / DynamicRoleBasedAuthorizationNETCore

Dynamic Role-Based Access Control for ASP.NET Core MVC and Web API
GNU General Public License v3.0
451 stars 94 forks source link

[Question]RoleStore.json move to DB #18

Closed danijel88 closed 3 years ago

danijel88 commented 3 years ago

Where I can find RoleStore.json ? Is it possible to save permissions in db ?

mo-esmp commented 3 years ago

The default path to save RoleStore.json is the location of the application's DLLs, for example in debug mode, the location is bin\Debug folder. You can also change the default location .AddJsonStore(options => options.FilePath = "FilePath");

Within tomorrow I will publish a new nuget package to save role access to the SQL Server database.

mo-esmp commented 3 years ago

To save role access in the database, install DynamicAuthorization.Mvc.MsSqlServerStore store.