Пример #1
0
 public static void AddScopePolicies <TController>(
     this AuthorizationOptions options,
     string issuer,
     Assembly assembly   = null,
     bool fromReferenced = false)
 {
     foreach (var attr in ScopeAuthorizeHelper
              .GetAllScopeAuthorizeAttributes <TController>(
                  assembly, fromReferenced))
     {
         options.AddScopePolicy(attr.Scope, issuer);
     }
 }