Examples of AuthUser


Examples of com.feth.play.module.pa.user.AuthUser

    }
    int ix = auth.indexOf(32);
    if (ix == -1 || !authScheme().equalsIgnoreCase(auth.substring(0,ix))) {
      return deny(context);
    }
    AuthUser user = authenticateResponse(auth.substring(ix+1));
    if (user == null) {
      return deny(context);
    } else {
      return user;
    }
View Full Code Here

Examples of com.feth.play.module.pa.user.AuthUser

  }

  @SubjectPresent
  public static Result askLink() {
    com.feth.play.module.pa.controllers.Authenticate.noCache(response());
    final AuthUser u = PlayAuthenticate.getLinkUser(session());
    if (u == null) {
      // account to link could not be found, silently redirect to login
      return redirect(routes.Application.index());
    }
    return ok(ask_link.render(ACCEPT_FORM, u));
View Full Code Here

Examples of com.feth.play.module.pa.user.AuthUser

  }

  @SubjectPresent
  public static Result doLink() {
    com.feth.play.module.pa.controllers.Authenticate.noCache(response());
    final AuthUser u = PlayAuthenticate.getLinkUser(session());
    if (u == null) {
      // account to link could not be found, silently redirect to login
      return redirect(routes.Application.index());
    }
View Full Code Here

Examples of com.feth.play.module.pa.user.AuthUser

  @SubjectPresent
  public static Result askMerge() {
    com.feth.play.module.pa.controllers.Authenticate.noCache(response());
    // this is the currently logged in user
    final AuthUser aUser = PlayAuthenticate.getUser(session());

    // this is the user that was selected for a login
    final AuthUser bUser = PlayAuthenticate.getMergeUser(session());
    if (bUser == null) {
      // user to merge with could not be found, silently redirect to login
      return redirect(routes.Application.index());
    }
View Full Code Here

Examples of com.feth.play.module.pa.user.AuthUser

  @SubjectPresent
  public static Result doMerge() {
    com.feth.play.module.pa.controllers.Authenticate.noCache(response());
    // this is the currently logged in user
    final AuthUser aUser = PlayAuthenticate.getUser(session());

    // this is the user that was selected for a login
    final AuthUser bUser = PlayAuthenticate.getMergeUser(session());
    if (bUser == null) {
      // user to merge with could not be found, silently redirect to login
      return redirect(routes.Application.index());
    }
View Full Code Here

Examples of org.geoserver.geofence.services.dto.AuthUser

        @Override
        public AuthUser load(NamePw user) throws NoAuthException {
            if(LOGGER.isLoggable(Level.FINE))
                LOGGER.log(Level.FINE, "Loading user '"+user.getName()+"'");
            AuthUser auth = realRuleReaderService.authorize(user.getName(), user.getPw());
            if(auth==null)
                throw new NoAuthException("Can't auth user ["+user.getName()+"]");
            return auth;
        }
View Full Code Here

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

  public void testValidateEmailAddressWhenAlreadyLoggedIn() {
    AuthInitialization authInit = new AuthInitialization();
    authInit.setAuthServiceName(AuthServiceName.googleAccounts);
    authInit.setEmailAddress(env.getEmailAddress());
    authInit.setServiceSpecificUserId(env.getEmailAddress());
    AuthUser user = userService.registerNewUser(authInit);
    sessionService.create(user, authInit);
   
    try {
      ValidateEmailAddress action =
          new ValidateEmailAddress("adsfasf@asdfa.com");
View Full Code Here

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

  public void testValidateEmailAddressWithExistingUser() throws Exception {
    AuthInitialization authInit = new AuthInitialization();
    authInit.setAuthServiceName(AuthServiceName.googleAccounts);
    authInit.setEmailAddress(env.getEmailAddress());
    authInit.setServiceSpecificUserId(env.getEmailAddress());
    AuthUser user = userService.registerNewUser(authInit);
   
    ValidateEmailAddress action =
        new ValidateEmailAddress(env.getEmailAddress());
    ValidateEmailAddressResult result =
        (ValidateEmailAddressResult)dispatch.execute(null, action);
View Full Code Here

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

  public void testSignOutOfAppOnly() throws Exception {
    AuthInitialization authInit = new AuthInitialization();
    authInit.setAuthServiceName(AuthServiceName.googleAccounts);
    authInit.setEmailAddress(env.getEmailAddress());
    authInit.setServiceSpecificUserId(env.getEmailAddress());
    AuthUser user = userService.registerNewUser(authInit);
    sessionService.create(user, authInit);
   
    SignOut action = new SignOut();
    action.setAuthServiceName(AuthServiceName.googleAccounts);
    action.setSignOutOfApp(true);
View Full Code Here

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

  public void testSignOutOfAppAndExternalService() throws Exception {
    AuthInitialization authInit = new AuthInitialization();
    authInit.setAuthServiceName(AuthServiceName.googleAccounts);
    authInit.setEmailAddress(env.getEmailAddress());
    authInit.setServiceSpecificUserId(env.getEmailAddress());
    AuthUser user = userService.registerNewUser(authInit);
    sessionService.create(user, authInit);
   
    SignOut action = new SignOut();
    action.setAuthServiceName(AuthServiceName.googleAccounts);
    action.setSignOutOfApp(true);
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.