From f2aa4cde94b4537a274c12596da186bc49444c52 Mon Sep 17 00:00:00 2001 From: Phillip Shipley Date: Mon, 23 Oct 2017 16:09:22 -0400 Subject: [PATCH] adding label support to create mfa --- src/IdBrokerClient.php | 4 +++- src/descriptions/id-broker-api.php | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/IdBrokerClient.php b/src/IdBrokerClient.php index f075be4..ac347a5 100644 --- a/src/IdBrokerClient.php +++ b/src/IdBrokerClient.php @@ -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']; diff --git a/src/descriptions/id-broker-api.php b/src/descriptions/id-broker-api.php index 351893a..6e80048 100644 --- a/src/descriptions/id-broker-api.php +++ b/src/descriptions/id-broker-api.php @@ -140,6 +140,11 @@ 'location' => 'json', 'enum' => ['backupcode', 'totp', 'u2f'], ], + 'label' => [ + 'required' => false, + 'type' => 'string', + 'location' => 'json', + ], ], ], 'mfaDeleteInternal' => [