Grails 如何在GSP中使用openid4java实现openID
如何在gsp中构建openID返回URLGrails 如何在GSP中使用openid4java实现openID,grails,servlets,groovy,openid,gsp,Grails,Servlets,Groovy,Openid,Gsp,如何在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"; 参考:假设在config.groovy文件中适当地设置了grails.
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";
参考:假设在config.groovy文件中适当地设置了grails.serverURL,则可以使用createLink标记,并将绝对值设置为true:
grails.serverURL = "http://example.com"
String _returnURL = createLink(controller:'openid', action:'handleReturn', absolute:true)
// _returnURL -> http://example.com/appname/openid/handleReturn