コード例 #1
0
        public static SillycoreAuthorizationPolicy Create(string name, params string[] requiredScopes)
        {
            SillycoreAuthorizationPolicy policy = new SillycoreAuthorizationPolicy()
            {
                Name           = name,
                RequiredScopes = requiredScopes
            };

            return(policy);
        }
コード例 #2
0
 public SillycoreAuthorizationOptions WithPolicy(SillycoreAuthorizationPolicy policy)
 {
     _policies.Add(policy);
     return(this);
 }