[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Fri, 12 Jan 2007 15:06:20 -0000


raeburn		Fri Jan 12 10:06:20 2007 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  If SSO auth, need to set $env{'request.sso.login'} = 1 before internal_redirect to switchserver.
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.104 loncom/auth/lonacc.pm:1.105
--- loncom/auth/lonacc.pm:1.104	Mon Jan  8 10:54:23 2007
+++ loncom/auth/lonacc.pm	Fri Jan 12 10:06:18 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.104 2007/01/08 15:54:23 raeburn Exp $
+# $Id: lonacc.pm,v 1.105 2007/01/12 15:06:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -164,6 +164,7 @@
 	    # login but immeaditly go to switch server to find us a new 
 	    # machine
 	    &Apache::lonauth::success($r,$user,$domain,$home,'noredirect');
+            $env{'request.sso.login'} = 1;
 	    $r->internal_redirect('/adm/switchserver');
 	    $r->set_handlers('PerlHandler'=> undef);
 	} else {