From e9d31947b15a80d1bd0f71e1689abf4fd6f9b398 Mon Sep 17 00:00:00 2001 From: Muhammad Ateeb Date: Fri, 22 Sep 2023 13:59:37 +0000 Subject: [PATCH] Feature/totp for os user --- CHANGELOG.md | 8 ++++++++ src/Entity/OpenStackUser.php | 12 ++++++++++++ src/TransipAPI.php | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0ddfca..f842a29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ CHANGELOG ========= +6.48.1 +--- +* Totp identification status key added for the user. + +6.48.0 +--- +* Totp Enabled/Disabled Funcctionality added. + 6.47.1 --- * Alterered Operating System resource to also show the basename diff --git a/src/Entity/OpenStackUser.php b/src/Entity/OpenStackUser.php index ee58272..cc0e3c1 100644 --- a/src/Entity/OpenStackUser.php +++ b/src/Entity/OpenStackUser.php @@ -34,6 +34,13 @@ class OpenStackUser extends AbstractEntity */ protected $email; + /** + * Totp Enabled + * + * @var bool + */ + protected $totpEnabled; + public function getId(): string { return $this->id; @@ -63,4 +70,9 @@ public function setEmail(string $email): void { $this->email = $email; } + + public function getTotpEnabled(): bool + { + return $this->totpEnabled; + } } diff --git a/src/TransipAPI.php b/src/TransipAPI.php index a666224..95f95e1 100644 --- a/src/TransipAPI.php +++ b/src/TransipAPI.php @@ -97,7 +97,7 @@ class TransipAPI { public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6"; - public const TRANSIP_API_LIBRARY_VERSION = "6.48.0"; + public const TRANSIP_API_LIBRARY_VERSION = "6.48.1"; public const TRANSIP_API_DEMO_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImN3MiFSbDU2eDNoUnkjelM4YmdOIn0.eyJpc3MiOiJhcGkudHJhbnNpcC5ubCIsImF1ZCI6ImFwaS50cmFuc2lwLm5sIiwianRpIjoiY3cyIVJsNTZ4M2hSeSN6UzhiZ04iLCJpYXQiOjE1ODIyMDE1NTAsIm5iZiI6MTU4MjIwMTU1MCwiZXhwIjoyMTE4NzQ1NTUwLCJjaWQiOiI2MDQ0OSIsInJvIjpmYWxzZSwiZ2siOmZhbHNlLCJrdiI6dHJ1ZX0.fYBWV4O5WPXxGuWG-vcrFWqmRHBm9yp0PHiYh_oAWxWxCaZX2Rf6WJfc13AxEeZ67-lY0TA2kSaOCp0PggBb_MGj73t4cH8gdwDJzANVxkiPL1Saqiw2NgZ3IHASJnisUWNnZp8HnrhLLe5ficvb1D9WOUOItmFC2ZgfGObNhlL2y-AMNLT4X7oNgrNTGm-mespo0jD_qH9dK5_evSzS3K8o03gu6p19jxfsnIh8TIVRvNdluYC2wo4qDl5EW5BEZ8OSuJ121ncOT1oRpzXB0cVZ9e5_UVAEr9X3f26_Eomg52-PjrgcRJ_jPIUYbrlo06KjjX2h0fzMr21ZE023Gw"; /**