We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just like https://github.com/EduardoPires/EquinoxProject/blob/master/src/Equinox.WebApi/Startup.cs#L61, but we will put it into the configuration (consider using feature toggle), then just do something like
feature toggle
appsettings.json
"Features": { "Authz": { "CanWriteCustomerData": { "Customers": "Write" }, "CanRemoveCustomerData": { "Customers": "Remove" } } }
Then in the CustomerController.cs
CustomerController.cs
[Authorize] public class CustomerController : ApiController { [HttpPost] [Authorize(Policy = "CanWriteCustomerData")] [Route("customer-management")] public IActionResult Post([FromBody]CustomerViewModel customerViewModel) { } }
The text was updated successfully, but these errors were encountered:
thangchung
No branches or pull requests
Just like https://github.com/EduardoPires/EquinoxProject/blob/master/src/Equinox.WebApi/Startup.cs#L61, but we will put it into the configuration (consider using
feature toggle
), then just do something likeappsettings.json
Then in the
CustomerController.cs
The text was updated successfully, but these errors were encountered: