Package org.orgama.shared.auth.model

Examples of org.orgama.shared.auth.model.ICompleteAuthState


   
    httpSession.setAttribute(constants.getAuthInitializationKey(),
        authInitialization);
   
   
    ICompleteAuthState authState = bootstrapper.bootstrap();
   
    assertEquals(AuthState.serverError,
        authState.getAuthState());
  }
View Full Code Here


    authInitialization.setState(AuthInitializationState.authenticating);
   
    httpSession.setAttribute(constants.getAuthInitializationKey(),
        authInitialization);
   
    ICompleteAuthState completeAuthState = bootstrapper.bootstrap();
   
    assertNotNull(completeAuthState);
    assertEquals(AuthState.externalAuthenticationFailed,
        completeAuthState.getAuthState());
    assertEquals(AuthServiceName.googleAccounts,
        completeAuthState.getAuthServiceName());
  }
View Full Code Here

        env.getEmailAddress() + ".other");
   
    httpSession.setAttribute(constants.getAuthInitializationKey(),
        authInitialization);
   
    ICompleteAuthState completeAuthState = bootstrapper.bootstrap();
   
    assertNotNull(completeAuthState);
    assertEquals(AuthState.emailAddressTaken,
        completeAuthState.getAuthState());
    assertEquals(AuthServiceName.googleAccounts,
        completeAuthState.getAuthServiceName());
  }
View Full Code Here

        env.getEmailAddress());
   
    httpSession.setAttribute(constants.getAuthInitializationKey(),
        authInitialization);
   
    ICompleteAuthState completeAuthState = bootstrapper.bootstrap();
   
    assertNotNull(completeAuthState);
    assertEquals(AuthState.externalAccountClaimed,
        completeAuthState.getAuthState());
    assertEquals(AuthServiceName.googleAccounts,
        completeAuthState.getAuthServiceName());
  }
View Full Code Here

        env.getEmailAddress());
   
    httpSession.setAttribute(constants.getAuthInitializationKey(),
        authInitialization);
   
    ICompleteAuthState completeAuthState = bootstrapper.bootstrap();
   
    assertNotNull(completeAuthState);
    assertEquals(AuthState.externalUserIdMismatch,
        completeAuthState.getAuthState());
    assertEquals(AuthServiceName.googleAccounts,
        completeAuthState.getAuthServiceName());
  }
View Full Code Here

TOP

Related Classes of org.orgama.shared.auth.model.ICompleteAuthState

Copyright © 2018 www.massapicom. 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.