title: Is there a clean way to get attributes from appsettings.json, and use them inside a class attribute?
body: <p>The idea is to allow configure authentication values in appsettings (asp.net.core), and to use an authorization attribute so that a controller gets automatic authentication and it is configurable from appsettings.</p>
  
  <p>The dirty way would be using a static variable, but I believe there is a better way that I don't get because of my lack of knowledge about the framework.</p>
  
  <pre><code>[AuthorizeAttribute("some value from appsettings")]
  class Controller : ApiController
  </code></pre>