From 9e828f8f3c71ae457a6a00b03fa7d07d33b82a05 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 15 Mar 2016 21:29:45 +0000 Subject: [PATCH] Updated stub client entity --- tests/Stubs/ClientEntity.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/Stubs/ClientEntity.php b/tests/Stubs/ClientEntity.php index 74775ab0..4956b62b 100644 --- a/tests/Stubs/ClientEntity.php +++ b/tests/Stubs/ClientEntity.php @@ -53,7 +53,7 @@ class ClientEntity implements ClientEntityInterface */ public function setSecret($secret) { - $this->secret = $secret; + $this->secret = password_hash($secret, PASSWORD_DEFAULT); } /** @@ -79,4 +79,14 @@ class ClientEntity implements ClientEntityInterface { return $this->redirectUri; } + + /** + * Get the hashed client secret + * + * @return string + */ + public function getSecret() + { + return $this->secret; + } }