Running mod_shib on a non-standard port (i.e. 9999 rather than 443)
Philip Durbin
philip_durbin at harvard.edu
Tue Apr 28 15:58:58 EDT 2015
On Tue, Apr 28, 2015 at 3:09 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:
> The target there is all you need to know, you're telling it to use a
> target on 443, and so that requires it to manufacture a response URL using
> 443 instead of 9999.
Thanks, Scott. This is exactly what I need to get unstuck. I was just
saying in ##shibboleth* EDS has two URLs in the "defaultReturn" config
and I had added ":9999" to the first one but not the second one (for
"target"). In addition to the Apache config changes I've described,
the change below to my code is what I needed.
Thanks so much! Sorry for the noise!
Phil
murphy:dataverse pdurbin$ git diff -U1
src/main/webapp/resources/js/shib/idpselect_config.js | cat
diff --git a/src/main/webapp/resources/js/shib/idpselect_config.js
b/src/main/webapp/resources/js/shib/idpselect_config.js
index 4502a69..ee1c06b 100644
--- a/src/main/webapp/resources/js/shib/idpselect_config.js
+++ b/src/main/webapp/resources/js/shib/idpselect_config.js
@@ -7,3 +7,3 @@ function IdPSelectUIParms() {
this.alwaysShow = true; // If true, this will show
results as soon as you start typing
- this.dataSource = window.location.hostname === 'localhost' ?
'/resources/dev/sample-shib-identities.json' :
'/Shibboleth.sso/DiscoFeed'; // where to get the data from (dev vs.
prod)
+ this.dataSource = window.location.hostname === 'localhost' ?
'/resources/dev/sample-shib-identities.json' :
window.location.protocol + "//" + window.location.hostname +
':9999/Shibboleth.sso/DiscoFeed'; // where to get the data from (dev
vs. prod)
this.defaultLanguage = 'en'; // Language to use if the
browser local doesnt have a bundle
@@ -16,3 +16,3 @@ function IdPSelectUIParms() {
- this.defaultReturn = window.location.protocol + "//" +
window.location.hostname + "/Shibboleth.sso/Login?SAMLDS=1&target=" +
window.location.protocol + "//" + window.location.hostname +
"/shib.xhtml";
+ this.defaultReturn = window.location.protocol + "//" +
window.location.hostname +
":9999/Shibboleth.sso/Login?SAMLDS=1&target=" +
window.location.protocol + "//" + window.location.hostname +
":9999/shib.xhtml";
this.defaultReturnIDParam = null;
* http://irclog.perlgeek.de/shibboleth/2015-04-28
--
Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
More information about the users
mailing list