title: How to add multiple policies in action using Authorize attribute using identity 2.0?
body: <p>I am identity 2.1.2 with asp.net core 2.0, I have application claim table which have claim type and claim value
  i.e  Assets ,Assets Edit,Assets, Assets View, where claim types are same with distinct claim values and I am creating policies using claim type name which is working fine for me no clue about how to add multiple policies in one action. Below code is being used in startup file to create policies.</p>
  <pre><code>services.AddAuthorization(options =&gt;
  {
     var dbContext = SqlServerDbContextOptionsExtensions.UseSqlServer(new DbContextOptionsBuilder&lt;MyDBContext&gt;(),
        Configuration.GetConnectionString(&quot;TestIdentityClaimAuth&quot;)).Options;
  
     var dbCon = new MyDBContext(dbContext);
     //Getting the list of application claims.
     var applicationClaims = dbCon.ApplicationClaims.ToList();
     var strClaimValues = string.Empty;
     List&lt;ClaimVM&gt; lstClaimTypeVM = new List&lt;ClaimVM&gt;();
     IEnumerable&lt;string&gt; lstClaimValueVM = null;// new IEnumerable&lt;string&gt;();
  
     lstClaimTypeVM = (from dbAppClaim
           in dbCon.ApplicationClaims
        select new ClaimVM
        {
           ClaimType = dbAppClaim.ClaimType
        }).Distinct().ToList();
  
     foreach (ClaimVM objClaimType in lstClaimTypeVM)
     {
        lstClaimValueVM = (from dbClaimValues in dbCon.ApplicationClaims
           where dbClaimValues.ClaimType == objClaimType.ClaimType
           select dbClaimValues.ClaimValue).ToList();
  
        options.AddPolicy(objClaimType.ClaimType, policy =&gt; policy.RequireClaim(objClaimType.ClaimType, lstClaimValueVM));
        lstClaimValueVM = null;
     }
  });
  </code></pre>
  <p>And in my controller using the Autherize attribute like this.</p>
  <pre><code>[Authorize(Policy = &quot;Assets Edit&quot;)]
  </code></pre>
  <p>Please shade some light on it thanks in advance.</p>