【发布时间】:2012-07-01 20:18:19
【问题描述】:
我正在尝试使用the documentation page 上的示例代码向 Play Framework 应用程序添加 OpenID 登录支持:
Map<String, String> attributes = new HashMap<String, String>();
attributes.put("email", "http://schema.openid.net/contact/email");
OpenID.redirectURL(
openid,
routes.Application.openIDCallback.absoluteURL(),
attributes
);
问题是当我使用这段代码时,我得到以下编译错误:
找不到符号 [符号:方法 absoluteURL()] [位置:类 play.api.mvc.Call]确实,Call 类没有无参数的absoluteURL() 方法; Call#absoluteURL() 方法是:
和:
absoluteURL(Http.Request 请求,布尔安全)我需要使用什么Http.Request 实例? secure参数有什么意义?
【问题讨论】:
标签: java openid playframework-2.0