Exemplo n.º 1
0
        public RequiredClaimAttribute(string claim, string value)
        {
            if (string.IsNullOrWhiteSpace(claim))
            {
                throw new ArgumentNullException("claim");
            }
            if (string.IsNullOrWhiteSpace(value))
            {
                throw new ArgumentNullException("value");
            }

            _matcher = ClaimsMatcher.Require(claim, value);
        }
Exemplo n.º 2
0
        public RequiredClaimAttribute(string claim, string value)
        {
            if (string.IsNullOrWhiteSpace(claim))
            {
                throw new ArgumentNullException(nameof(claim));
            }
            if (string.IsNullOrWhiteSpace(value))
            {
                throw new ArgumentNullException(nameof(value));
            }

            _matcher = ClaimsMatcher.Require(claim, value);
            _claim   = claim;
            _value   = value;
        }
Exemplo n.º 3
0
 public NotMatcher(IClaimsMatcher matcher)
 {
     _matcher = matcher;
 }
 public ExcludeClaimAttribute(string claim, string value)
 {
     _matcher = ClaimsMatcher.Not(claim, value);
     _claim   = claim;
     _value   = value;
 }