public static SillycoreAuthorizationPolicy Create(string name, params string[] requiredScopes) { SillycoreAuthorizationPolicy policy = new SillycoreAuthorizationPolicy() { Name = name, RequiredScopes = requiredScopes }; return(policy); }
public SillycoreAuthorizationOptions WithPolicy(SillycoreAuthorizationPolicy policy) { _policies.Add(policy); return(this); }