Skip to content

Commit

Permalink
use a different password for each profilereview user
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 7, 2024
1 parent b463f4d commit 4b73362
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
8 changes: 4 additions & 4 deletions development/idp-local/config/authsources.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
'invalid'
],
],
'no_review:a' => [
'no_review:e' => [
'eduPersonPrincipalName' => ['NO_REVIEW@idp'],
'eduPersonTargetID' => ['11111111-1111-1111-1111-111111111111'],
'sn' => ['Review'],
Expand Down Expand Up @@ -97,7 +97,7 @@
],
'profile_review' => 'no'
],
'mfa_add:a' => [
'mfa_add:f' => [
'eduPersonPrincipalName' => ['MFA_ADD@idp'],
'eduPersonTargetID' => ['22222222-2222-2222-2222-222222222222'],
'sn' => ['Add'],
Expand All @@ -118,7 +118,7 @@
],
'profile_review' => 'no'
],
'method_add:a' => [
'method_add:g' => [
'eduPersonPrincipalName' => ['METHOD_ADD@methodidp'],
'eduPersonTargetID' => ['44444444-4444-4444-4444-444444444444'],
'sn' => ['Add'],
Expand Down Expand Up @@ -150,7 +150,7 @@
],
'profile_review' => 'no'
],
'profile_review:a' => [
'profile_review:h' => [
'eduPersonPrincipalName' => ['METHOD_REVIEW@methodidp'],
'eduPersonTargetID' => ['55555555-5555-5555-5555-555555555555'],
'sn' => ['Review'],
Expand Down
18 changes: 15 additions & 3 deletions features/bootstrap/ProfileReviewContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function iProvideCredentialsThatDoNotNeedReview()
{
// See `development/idp-local/config/authsources.php` for options.
$this->username = 'no_review';
$this->password = 'a';
$this->password = 'e';
}

/**
Expand All @@ -161,7 +161,19 @@ public function iProvideCredentialsThatAreDueForAReminder($category, $nagType)
{
// See `development/idp-local/config/authsources.php` for options.
$this->username = $category . '_' . $nagType;
$this->password = 'a';
switch ($this->username) {
case 'mfa_add':
$this->password = 'f';
break;

case 'method_add':
$this->password = 'g';
break;

case 'profile_review':
$this->password = 'h';
break;
}
}

/**
Expand Down Expand Up @@ -249,7 +261,7 @@ public function iProvideCredentialsForAUserThatHasUsedTheManagerMfaOption()
{
// See `development/idp-local/config/authsources.php` for options.
$this->username = 'profile_review';
$this->password = 'a';
$this->password = 'h';
}

/**
Expand Down

0 comments on commit 4b73362

Please sign in to comment.