In my controller annotation [Authorized].
I would like to get a list of authorized users that are configured in my web.config file.
<add key="authorizedUsers" value="jeff,dan,mindy,claudia"/>
I know that in the controller you can do something like:
[Authorize Users="jeff,dan,mindy,claudia"]
But I would rather just update the web.config file without recompiling. Do I need to read the web.config file for my list and then add it to the attribute [Authorize]? I also use Windows authentication for this, and not for authentication.
source
share