Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Copied from an e-mail from Thomas Skowronek:
Peter,
In regards to the targetUri issue you posted to the developers here:
http://mail-archives.apache.org/mod_mbox/incubator-jsecurity-dev/200810.mbox/%3Cd95c613f0810221244v5c70d857g708de10d38dfc08e@mail.gmail.com%3E
I modified the login action in your AuthController to the following and was
able to get back the original functionality provided by the plugin.
def login = {
SavedRequest sRequest = WebUtils.getSavedRequest(request)
if (sRequest) {
def uri = sRequest.getRequestURI()
def targetUri = sRequest.getRequestURI() - request.contextPath
def query = sRequest.getQueryString()
if (query) {
if (!query.startsWith('?')) {
query = '?' + query
}
targetUri += query
}
if(!params.targetUri) params.targetUri = targetUri
}
return [ username: params.username, rememberMe: (params.rememberMe !=
null), targetUri: params.targetUri ]
}
Issue Links
| This issue duplicates: | ||||
| GPSHIRO-46 | Integrate with WebUtils.getSavedRequest() |
|
|
|