I am attempting to add OpenID login support to a Play Framework application using the sample code on the documentation page:
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
);
The problem is that when I use this code, I get the following compilation error:
cannot find symbol [symbol: method absoluteURL()] [location: class play.api.mvc.Call]
Indeed, there isn’t a no-argument absoluteURL() method of the Call class; the Call#absoluteURL() methods are:
absoluteURL(Http.Request request)
and:
absoluteURL(Http.Request request, boolean secure)
What Http.Request instance do I need to use? What is the significance of the secure parameter?
Try with the current request: