Package controllers

Source Code of controllers.JavaController

package controllers;

import com.feth.play.module.pa.PlayAuthenticate;
import com.feth.play.module.pa.user.AuthUser;

import play.mvc.Controller;
import play.mvc.Result;
import play.mvc.Security;

import controllers.routes;

public class JavaController extends Controller {

  public static final String FLASH_ERROR_KEY = "error";

  @Security.Authenticated(JavaSecured.class)
  public static Result index() {
    AuthUser user = PlayAuthenticate.getUser(ctx());
    return ok(user.getProvider() + ": " + user.getId());
  }

}
TOP

Related Classes of controllers.JavaController

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.