svn commit: r601734 - /lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java
[email protected] Thu, 06 Dec 2007 13:55:35 -0000
Newsgroups
gmane.comp.cms.lenya.cvs
Message-ID
<[email protected] >
Author: andreas
Date: Thu Dec 6 05:55:34 2007
New Revision: 601734
URL: http://svn.apache.org/viewvc?rev=601734&view=rev
Log:
[Refactoring] extracted constants
Modified:
lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java
Modified: lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java?rev=601734&r1=601733&r2=601734&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java Thu Dec 6 05:55:34 2007
@@ -51,6 +51,7 @@
import org.apache.lenya.util.ServletHelper;
import org.apache.shibboleth.AssertionConsumerService;
import org.apache.shibboleth.AttributeRequestService;
+import org.apache.shibboleth.impl.AssertionConsumerServiceImpl;
import org.opensaml.SAMLBrowserProfile.BrowserProfileResponse;
/**
@@ -292,6 +293,11 @@
if (redirectConfig != null) {
this.redirectToWayf = redirectConfig.getValueAsBoolean();
}
+ }
+
+ public String getTargetUri(Request request) {
+ String target = request.getParameter(AssertionConsumerServiceImpl.REQ_PARAM_TARGET);
+ return target != null ? target : request.getRequestURI();
}
}