如何在gsp中构建openID返回URL??
Define a ReturnURL This is the endpoint where your webapp will receive and process the authentication responses from the OpenID Provider. String _returnURL = "http://example.com/openid";
参考: http://code.google.com/p/openid4java/wiki/QuickStart
假设你有圣杯。在配置中正确设置服务器URL。groovy文件您可以在绝对值设置为true时使用createLink标记:
grails.serverURL = "http://example.com" String _returnURL = createLink(controller:'openid', action:'handleReturn', absolute:true) // _returnURL -> http://example.com/appname/openid/handleReturn