This role configuration is static. However, nothing prevents you from writing your own authorization filter, where you can do whatever you want. You need to implement an interface IAuthorizationFilter.
I have done such things in several projects and it works great.
source
share