Skip to content

Commit

Permalink
taking out I2 login support for local dev testing
Browse files Browse the repository at this point in the history
  • Loading branch information
axel committed Aug 3, 2021
1 parent f19d90b commit 1be5bb3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,23 +568,23 @@ function isAuthorized() {
$roles = $this->Role->calculateCMRoles();

//TODO - This is needed for my dev enviro since I do not log in via I2 IdP
/*

if ($this->Session->check('Auth.User.username')) {
$this->userId = $this->Session->read('Auth.User.username');
}
*/


/*
* 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.
*/

if ($this->Session->check('Plugin.Grouper.UserId')) {
$this->userId = $this->Session->read('Plugin.Grouper.UserId');
} else {
$this->userId = $this->getUserId($this->Session->read('Auth.User.co_person_id'));
$this->Session->write('Plugin.Grouper.UserId', $this->userId);
}
//
// if ($this->Session->check('Plugin.Grouper.UserId')) {
// $this->userId = $this->Session->read('Plugin.Grouper.UserId');
// } else {
// $this->userId = $this->getUserId($this->Session->read('Auth.User.co_person_id'));
// $this->Session->write('Plugin.Grouper.UserId', $this->userId);
// }

// Determine what operations this user can perform

Expand Down

0 comments on commit 1be5bb3

Please sign in to comment.