Skip to content

Commit

Permalink
Merge pull request #29 from silinternational/develop
Browse files Browse the repository at this point in the history
adding label support to create mfa
  • Loading branch information
fillup authored Oct 23, 2017
2 parents 336a6d2 + 569d77c commit 1ea2a8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/IdBrokerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,16 @@ public function listUsers($fields = null, $search = [])
* Create a new MFA configuration
* @param string $employee_id
* @param string $type
* @param string $label
* @return array|null
* @throws Exception
*/
public function mfaCreate($employee_id, $type)
public function mfaCreate($employee_id, $type, $label = null)
{
$result = $this->mfaCreateInternal([
'employee_id' => $employee_id,
'type' => $type,
'label' => $label,
]);
$statusCode = (int)$result['statusCode'];

Expand Down
5 changes: 5 additions & 0 deletions src/descriptions/id-broker-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@
'location' => 'json',
'enum' => ['backupcode', 'totp', 'u2f'],
],
'label' => [
'required' => false,
'type' => 'string',
'location' => 'json',
],
],
],
'mfaDeleteInternal' => [
Expand Down

0 comments on commit 1ea2a8a

Please sign in to comment.