[LON-CAPA-cvs] cvs: loncom / lontrans.pm
raeburn
raeburn at source.lon-capa.org
Sat Jul 17 16:34:15 EDT 2021
raeburn Sat Jul 17 20:34:15 2021 EDT
Modified files:
/loncom lontrans.pm
Log:
- Bug 6914
If a LON-CAPA server is a Shibboleth SP, requests to the SP are to the
"official" hostname not the alias for consistency with lonshibauth.pm.
Index: loncom/lontrans.pm
diff -u loncom/lontrans.pm:1.31 loncom/lontrans.pm:1.32
--- loncom/lontrans.pm:1.31 Mon May 3 15:27:42 2021
+++ loncom/lontrans.pm Sat Jul 17 20:34:15 2021
@@ -1,7 +1,7 @@
# The LearningOnline Network
# URL translation for User Files
#
-# $Id: lontrans.pm,v 1.31 2021/05/03 15:27:42 raeburn Exp $
+# $Id: lontrans.pm,v 1.32 2021/07/17 20:34:15 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -89,6 +89,10 @@
}
if ($redirect) {
my $uri = $r->uri;
+ if (($uri eq '/adm/sso') || ($uri eq '/adm/switchserver') ||
+ ($uri =~ m{^/Shibboleth.sso/})) {
+ return DECLINED;
+ }
unless ($uri eq '/adm/migrateuser') {
my %user;
my $handle = &Apache::lonnet::check_for_valid_session($r,undef,\%user);
More information about the LON-CAPA-cvs
mailing list