How to implement openID with openid4java in GSP

How to create openID ReturnURL in gsp ??

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";

      

Link: http://code.google.com/p/openid4java/wiki/QuickStart

0


source to share


1 answer


Assuming you have grails.serverURL set appropriately in your config.groovy file, you can use the createLink tag with an absolute value of true:



grails.serverURL = "http://example.com"

String _returnURL = createLink(controller:'openid', action:'handleReturn', absolute:true)

// _returnURL -> http://example.com/appname/openid/handleReturn

      

+1


source







All Articles