You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/12/06 14:55:35 UTC
svn commit: r601734 -
/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethAuthenticator.java
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();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org