Exemplo n.º 1
0
        private void MatchPrivilege_WhenNoPrivilegeNodeFound_ReturnsValidResult()
        {
            var mockIdentity   = new Saml20Identity(string.Empty, new List <SamlAttribute>(), string.Empty);
            var sut            = Saml20IdentityParser.CreateFrom(mockIdentity);
            var matchPrivilege = sut.MatchPrivilege("dummy");

            Assert.False(matchPrivilege.HasValue);
        }
Exemplo n.º 2
0
        public InitialFlowState(
            SsoFlowConfiguration configuration,
            Saml20IdentityParser parser,

            ISsoStateFactory stateFactory,
            ILogger logger)
        {
            _parser       = parser;
            _stateFactory = stateFactory;
            _logger       = logger;
            _samlKitosReadAccessRoleIdentifier = $"{configuration.PrivilegePrefix}/roles/usersystemrole/readaccess/1";
        }