From 797ed66edab4d29b7a1e11e20e474ab1f90efc73 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 1 May 2014 14:46:22 +0100 Subject: [PATCH] Added getBySession --- src/Storage/ClientInterface.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Storage/ClientInterface.php b/src/Storage/ClientInterface.php index 8b4643b8..fa881356 100644 --- a/src/Storage/ClientInterface.php +++ b/src/Storage/ClientInterface.php @@ -22,7 +22,14 @@ interface ClientInterface * @param string $clientSecret The client's secret (default = "null") * @param string $redirectUri The client's redirect URI (default = "null") * @param string $grantType The grant type used in the request (default = "null") - * @return League\OAuth2\Server\Entity\Client|null + * @return League\OAuth2\Server\Entity\Client */ public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null); + + /** + * Get the client associated with a session + * @param \League\OAuth2\Server\Entity\Session $session The session + * @return \League\OAuth2\Server\Entity\Client + */ + public function getBySession(Session $session); }