示例#1
0
        public LoginController(IQueryProcessor queryProcessor,
                               ICommandProcessor commandProcessor,
                               IJwtSecurityTokenHandlerAdapter jwtSecurityTokenHandlerAdapter)
        {
            Argument.ThrowIfNull(() => queryProcessor);
            Argument.ThrowIfNull(() => commandProcessor);
            Argument.ThrowIfNull(() => jwtSecurityTokenHandlerAdapter);

            this.queryProcessor   = queryProcessor;
            this.commandProcessor = commandProcessor;
            this.jwtSecurityTokenHandlerAdapter = jwtSecurityTokenHandlerAdapter;
        }
示例#2
0
            private readonly IJwtSecurityToken _token;                 // Token que se extrae del Authorization header

            public JwtAuthenticationMessageHandlerTest(IJwtSecurityToken token, IJwtSecurityTokenHandlerAdapter handler)
            {
                _token   = token;
                _handler = handler;
            }