Package br.com.caelum.vraptor.mauth

Examples of br.com.caelum.vraptor.mauth.SystemUser


  }

  @Post("/auth/facebook")
  public void login(final String profile) {
    LOGGER.debug("logging in user " + profile);
    final SystemUser user = facebook.connectedOrFindUserFor(profile);
    SystemUser toLogin = facebook.createOrConnectUser(profile, user);
    if (toLogin == null) {
      validator.add(new I18nMessage("vraptor.inexisting_facebook_user",
          "vraptor.inexisting_facebook_user"));
      validator.onErrorUse(page()).redirectTo("/");
    } else {
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.mauth.SystemUser

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.