Package com.feth.play.module.pa.providers

Examples of com.feth.play.module.pa.providers.AuthProvider


    return u;
  }

  public static Result handleAuthentication(final String provider,
      final Context context, final Object payload) {
    final AuthProvider ap = getProvider(provider);
    if (ap == null) {
      // Provider wasn't found and/or user was fooling with our stuff -
      // tell him off:
      return Controller.notFound(Messages.get(
          "playauthenticate.core.exception.provider_not_found",
          provider));
    }
    try {
      final Object o = ap.authenticate(context, payload);
      if (o instanceof String) {
        return Controller.redirect((String) o);
      } else if (o instanceof Result) {
        return (Result) o;
      } else if (o instanceof AuthUser) {
View Full Code Here

TOP

Related Classes of com.feth.play.module.pa.providers.AuthProvider

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.