Examples of doLogin()


Examples of org.keycloak.testsuite.OAuthClient.doLogin()

        WebDriver driver2 = WebRule.createWebDriver();
        try {
            OAuthClient oauth2 = new OAuthClient(driver2);
            oauth2.state("mystate");
            oauth2.doLogin("test-user@localhost", "password");

            Event login2 = events.expectLogin().assertEvent();

            Assert.assertEquals(RequestType.AUTH_RESPONSE, RequestType.valueOf(driver2.getTitle()));
            Assert.assertNotNull(oauth2.getCurrentQuery().get(OAuth2Constants.CODE));
View Full Code Here

Examples of org.keycloak.testsuite.OAuthClient.doLogin()

        @Override
        public void run() {
            driver.manage().deleteAllCookies();
            OAuthClient oauth = new OAuthClient(driver);
            oauth.doLogin("test-user@localhost", "password");
            String code = oauth.getCurrentQuery().get(OAuth2Constants.CODE);
            AccessTokenResponse response = oauth.doAccessTokenRequest(code, "password");
            Assert.assertEquals(200, response.getStatusCode());
            count.incrementAndGet();
View Full Code Here

Examples of org.spoutcraft.launcher.skin.MetroLoginFrame.doLogin()

    splash.dispose();
    frame.setVisible(true);
    if (params.hasAccount()) {
      frame.disableForm();
      frame.doLogin(params.getUser(), params.getPass());
    }

    logger.info("Launcher startup took " + (System.currentTimeMillis() - startupTime) + "ms");
  }
View Full Code Here

Examples of org.spoutcraft.launcher.skin.components.LoginFrame.doLogin()

    splash.dispose();
    frame.setVisible(true);
    if (params.hasAccount()) {
      frame.disableForm();
      frame.doLogin(params.getUser(), params.getPass());
    }

    logger.info("Launcher startup took " + (System.currentTimeMillis() - startupTime) + "ms");
  }
View Full Code Here

Examples of org.springframework.richclient.security.ApplicationSecurityManager.doLogin()

        assertFalse( "Object should not be authorized", cmdAdmin.isAuthorized() );
        assertFalse( "Object should not be authorized", cmdAdminAlias.isAuthorized() );

        // Now login with ROLE_WRITE
        Authentication auth = TestAuthenticationManager.makeAuthentication( "test", "test", "ROLE_WRITE" );
        securityManager.doLogin( auth );

        assertTrue( "Object should be authorized", cmdWrite.isAuthorized() );
        assertFalse( "Object should not be authorized", cmdAdmin.isAuthorized() );
        assertFalse( "Object should not be authorized", cmdAdminAlias.isAuthorized() );
        assertFalse( "Object should not be authorized", testAuth1.isAuthorized() );
View Full Code Here

Examples of org.springframework.richclient.security.ApplicationSecurityManager.doLogin()

        assertFalse( "Object should not be authorized", testAuth1.isAuthorized() );
        assertEquals( "Object should be updated", authorizeCount++, testAuth1.getAuthCount() );

        // Now login with ROLE_ADMIN
        auth = TestAuthenticationManager.makeAuthentication( "test", "test", "ROLE_ADMIN" );
        securityManager.doLogin( auth );

        assertTrue( "Object should be authorized", cmdWrite.isAuthorized() );
        assertTrue( "Object should be authorized", cmdAdmin.isAuthorized() );
        assertTrue( "Object should be authorized", cmdAdminAlias.isAuthorized() );
        assertTrue( "Object should be authorized", testAuth1.isAuthorized() );
View Full Code Here

Examples of org.springframework.richclient.security.ApplicationSecurityManager.doLogin()

        cmdWrite.setEnabled( true );
        assertFalse( "Object should not be enabled", cmdWrite.isEnabled() );

        // Now authorize it
        Authentication auth = TestAuthenticationManager.makeAuthentication( "test", "test", "ROLE_WRITE" );
        securityManager.doLogin( auth );

        assertTrue( "Object should be authorized", cmdWrite.isAuthorized() );
        assertTrue( "Object should be enabled", cmdWrite.isEnabled() );

        // Now we should be able to disable and re-enabled it
View Full Code Here

Examples of org.springframework.richclient.security.ApplicationSecurityManager.doLogin()

        securityManager.doLogout();

        assertFalse( "Object should not be authorized", cmdWrite.isAuthorized() );
        assertFalse( "Object should not be enabled", cmdWrite.isEnabled() );

        securityManager.doLogin( auth );

        assertTrue( "Object should be authorized", cmdWrite.isAuthorized() );
        assertFalse( "Object should not be enabled", cmdWrite.isEnabled() );
    }
View Full Code Here

Examples of org.structr.core.auth.Authenticator.doLogin()

      try {

        StructrWebSocket socket = this.getWebSocket();
        Authenticator auth = socket.getAuthenticator();

        user = auth.doLogin(socket.getRequest(), username, password);

        if (user != null) {

          final String sessionId = webSocketData.getSessionId();
          if (sessionId == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.