private LoginContext makeLoginContext(String address, String password) throws LoginException { return new LoginContext("Wave", new Subject(), new FakeCallbackHandler(address, password), AuthTestUtil.makeConfiguration()); }
private LoginContext makeLoginContext(String address, String password) throws LoginException { return new LoginContext("Wave", new Subject(), new FakeCallbackHandler(address, password), AuthTestUtil.makeConfiguration()); }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); AccountStore store = new MemoryStore(); HumanAccountData account = new HumanAccountDataImpl(USER, new PasswordDigest("password".toCharArray())); store.putAccount(account); Config config = ConfigFactory.parseMap(ImmutableMap.<String, Object>of( "administration.disable_registration", false, "administration.analytics_account", "UA-someid", "security.enable_clientauth", false, "security.clientauth_cert_domain", "", "administration.disable_loginpage", false) ); servlet = new AuthenticationServlet(store, AuthTestUtil.makeConfiguration(), manager, "examPLe.com", config); AccountStoreHolder.init(store, "eXaMple.com"); when(session.getId()).thenReturn(""); }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); AccountStore store = new MemoryStore(); HumanAccountData account = new HumanAccountDataImpl(USER, new PasswordDigest("password".toCharArray())); store.putAccount(account); Config config = ConfigFactory.parseMap(ImmutableMap.<String, Object>of( "administration.disable_registration", false, "administration.analytics_account", "UA-someid", "security.enable_clientauth", false, "security.clientauth_cert_domain", "", "administration.disable_loginpage", false) ); servlet = new AuthenticationServlet(store, AuthTestUtil.makeConfiguration(), manager, "examPLe.com", config, welcomeBot); AccountStoreHolder.init(store, "eXaMple.com"); }