0

gspでopenID ReturnURLを構築する方法??

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

4

1 に答える 1

1

config.groovy ファイルに grails.serverURL が適切に設定されていると仮定すると、絶対値を true に設定して createLink タグを使用できます。

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

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

// _returnURL -> http://example.com/appname/openid/handleReturn
于 2009-09-12T11:50:31.550 に答える