# Microsoft.AspNetCore.Authorization

``` diff
 namespace Microsoft.AspNetCore.Authorization {
     public class DefaultAuthorizationService : IAuthorizationService {
-        public Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements);
+        public virtual Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements);
-        public Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object resource, string policyName);
+        public virtual Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object resource, string policyName);
     }
 }
```

