--- loncom/auth/lonauth.pm 2018/04/21 21:29:31 1.151 +++ loncom/auth/lonauth.pm 2018/05/08 15:44:11 1.152 @@ -1,7 +1,7 @@ # The LearningOnline Network # User Authentication Module # -# $Id: lonauth.pm,v 1.151 2018/04/21 21:29:31 raeburn Exp $ +# $Id: lonauth.pm,v 1.152 2018/05/08 15:44:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -106,6 +106,11 @@ sub success { $r->headers_out->add('Set-cookie' => $defaultcookie); } $r->send_http_header; + if (ref($form) eq 'HASH') { + $form->{'lti.reqcrs'} = $env{'request.lti.reqcrs'}; + $form->{'lti.reqrole'} = $env{'request.lti.reqrole'}; + $form->{'lti.sourcecrs'} = $env{'request.lti.sourcecrs'}; + } &Apache::ltiauth::lti_reqcrs($r,$domain,$form,$username,$domain); return; }