From 1e5753312785afe647bf3782ccea28acd8056a31 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 8 May 2013 18:06:18 -0700 Subject: [PATCH] Added getClientId method --- src/League/OAuth2/Server/Resource.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/League/OAuth2/Server/Resource.php b/src/League/OAuth2/Server/Resource.php index 8bf96b11..0499ae61 100644 --- a/src/League/OAuth2/Server/Resource.php +++ b/src/League/OAuth2/Server/Resource.php @@ -161,6 +161,15 @@ class Resource return $this->accessToken; } + /** + * Gets the client ID that created the session + * @return string + */ + public function getClientId() + { + return $this->clientId; + } + /** * Checks if the access token is valid or not. *