Open kuldeep17910 opened 2 years ago
Hey @kuldeep17910,
Thanks for reporting. I will check the second one but didn't get you for the first one. On logout you get Access denied You do not have access to this resource
error? The default behavior for a Controller/Action that does not have [Authorize]
attribute, the library does not check the access.
@mo-esmp Thanks for the support, I think I have not explained the first one in correct way.
Let me try again
Part A
Part B
Thanks
@kuldeep17910 Good catch! I need to think about that how to give the access to logout action without checking the access and the problem is everyone can name and implement logout in a different way. A workaround for now is removing [Authorize]
from logout action.
@mo-esmp Great! Thanks for the support. This is really good repository, keep adding to this ...
Role Deletion I have noticed that when trying to delete the role only alert (Are you sure want delete this role ?) is coming and role is not getting deleted when clicking on ok.
Hi @mo-esmp Thanks for this excellent repository. Some initial small problems I faced are :
I am using .Net Core 6.0
After successful login you can log out (error - Access denied You do not have access to this resource) because you do not have any default access and to give access you have to manually disable the restrictions (as comments [Authorize] in controllers & all required secure-content asp-area="" asp-controller="Role" asp-action="Index" in _Layout.cshtml).
I found that when creating role without any access it is throwing the following errors and same error when we edit the role and try to give the access from access list ArgumentNullException: Value cannot be null. (Parameter 'value') Newtonsoft.Json.Utilities.ValidationUtils.ArgumentNotNull(object value, string parameterName) Newtonsoft.Json.JsonConvert.DeserializeObject(string value, Type type, JsonSerializerSettings settings) Newtonsoft.Json.JsonConvert.DeserializeObject(string value, JsonSerializerSettings settings)
Newtonsoft.Json.JsonConvert.DeserializeObject(string value)
eis4.Controllers.RoleController.Edit(string id) in RoleController.cs
lambda_method364(Closure , object )