Skip to content

Commit

Permalink
updating for I2 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Stohn authored and Axel Stohn committed Mar 24, 2023
1 parent 34e01d0 commit 06e0845
Showing 1 changed file with 5 additions and 48 deletions.
53 changes: 5 additions & 48 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -773,17 +773,16 @@ function isAuthorized()

//TODO - This is needed for my dev enviro since I do not log in via I2 IdP
// BEGIN ===============================================
if ($this->Session->check('Auth.User.username')) {
$this->userId = $this->Session->read('Auth.User.username');
}
// if ($this->Session->check('Auth.User.username')) {
// $this->userId = $this->Session->read('Auth.User.username');
// }
// END ===============================================

//TODO - Need to make the following code configurable in getting the user ID. In this case the code is
// specific to the needs of I2.
// BEGIN ===============================================

<<<<<<< Updated upstream
/*$uid=$this->Session->read('Auth.User.co_person_id');
$uid=$this->Session->read('Auth.User.co_person_id');
$username=$this->Session->read('Auth.User.username');
error_log("HUBING ================ " . $username);

Expand Down Expand Up @@ -823,49 +822,7 @@ function isAuthorized()
$this->Session->write('Plugin.Grouper.UserId', $this->userId);
}
// END ===============================================
*/
=======
// $uid=$this->Session->read('Auth.User.co_person_id');
// $username=$this->Session->read('Auth.User.username');
// error_log("HUBING ================ " . $username);
//
// switch ($username) {
// case "chubing@internet2.edu":
// error_log("username is " . $username);
// $uid=32;
// break;
// case "pcaskey@internet2.edu":
// error_log("username is " . $username);
// $uid=28;
// break;
// case "ij@internet2.edu":
// error_log("username is " . $username);
// $uid=6842;
// break;
// case "aaschenbrener@internet2.edu":
// error_log("username is " . $username);
// $uid=13643;
// // 12430 in dev
// break;
// case "sho@internet2.edu":
// error_log("username is " . $username);
// $uid=6103;
// break;
// case "wkaufman@internet2.edu":
// error_log("username is " . $username);
// $uid=6830;
// break;
// }
// error_log("UID IS ================ " . $uid);
//
// if ($this->Session->check('Plugin.Grouper.UserId')) {
// $this->userId = $this->Session->read('Plugin.Grouper.UserId');
// } else {
// $this->userId = $this->getUserId($uid);
// $this->Session->write('Plugin.Grouper.UserId', $this->userId);
// }
// END ===============================================
>>>>>>> Stashed changes


// Determine what operations this user can perform
// Construct the permission set for this user, which will also be passed to the view.
Expand Down

0 comments on commit 06e0845

Please sign in to comment.