public DefaultUserSessionTests() { _user = IdentityServerPrincipal.Create("123", "bob"); _stubAuthHandler = new StubAuthenticationHandler(null, IdentityServerConstants.DefaultCookieAuthenticationScheme); _mockHttpContext.HttpContext.GetAuthentication().Handler = _stubAuthHandler; _subject = new DefaultUserSession(_mockHttpContext, _options, TestLogger.Create <DefaultUserSession>()); }
public DefaultUserSessionTests() { _mockAuthenticationHandlerProvider.Handler = _mockAuthenticationHandler; _user = new IdentityServerUser("123").CreatePrincipal(); _subject = new DefaultUserSession( _mockHttpContext, _mockAuthenticationHandlerProvider, _options, new StubClock(), TestLogger.Create <DefaultUserSession>()); }
public DefaultUserSessionTests() { _mockAuthenticationHandlerProvider.Handler = _mockAuthenticationHandler; _user = IdentityServerPrincipal.Create("123", "bob"); _subject = new DefaultUserSession( _mockHttpContext, _mockAuthenticationSchemeProvider, _mockAuthenticationHandlerProvider, _options, TestLogger.Create <DefaultUserSession>()); }
public DefaultUserSessionTests() { _user = IdentityServerPrincipal.Create("123", "bob"); _subject = new DefaultUserSession(_mockHttpContext, _options, TestLogger.Create <DefaultUserSession>()); }