Example #1
0
 /**
  * Retrieve the URL where the user should be redirected to start the OpenID authentication process
  */
 public static F.Promise<String> redirectURL(
     String openID,
     String callbackURL,
     Map<String, String> axRequired,
     Map<String, String> axOptional,
     String realm) {
   if (axRequired == null) axRequired = new HashMap<String, String>();
   if (axOptional == null) axOptional = new HashMap<String, String>();
   return F.Promise.wrap(
       play.api.libs.openid.OpenID.redirectURL(
           openID,
           callbackURL,
           JavaConversions.mapAsScalaMap(axRequired).toSeq(),
           JavaConversions.mapAsScalaMap(axOptional).toSeq(),
           Scala.Option(realm)));
 }