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; + } }