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/09/27 10:02:33 UTC
svn commit: r579935 -
/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java
Author: andreas
Date: Thu Sep 27 01:02:33 2007
New Revision: 579935
URL: http://svn.apache.org/viewvc?rev=579935&view=rev
Log:
Add server to shire and target URLs in ShibbolethModule
Modified:
lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java
Modified: lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java?rev=579935&r1=579934&r2=579935&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java Thu Sep 27 01:02:33 2007
@@ -77,6 +77,12 @@
OutgoingLinkRewriter rewriter = new OutgoingLinkRewriter(this.manager, getLogger());
String outgoingUrl = rewriter.rewrite(webappUrl);
+ if (outgoingUrl.startsWith("/")) {
+ String serverUrl = req.getScheme() + "://" + req.getServerName() + ":"
+ + req.getServerPort();
+ outgoingUrl = serverUrl + outgoingUrl;
+ }
+
if (name.equals(ATTR_SHIRE)) {
return outgoingUrl + "?lenya.usecase=login&lenya.step=login";
} else if (name.equals(ATTR_TARGET)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org