Как реализовать openID с использованием openid4java в GSP - PullRequest
0 голосов
/ 04 мая 2009

Как собрать openID ReturnURL в 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";

Справка: http://code.google.com/p/openid4java/wiki/QuickStart

1 Ответ

1 голос
/ 12 сентября 2009

Предполагая, что у вас правильно установлен grails.serverURL в вашем файле config.groovy, вы можете использовать тег createLink с абсолютным значением true:

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

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

// _returnURL -> http://example.com/appname/openid/handleReturn
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...