From accb80289f17708d32b5ede8e71020825712fc85 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 10 May 2013 16:50:13 -0700 Subject: [PATCH] Added associateAuthCodeScope() method --- .../OAuth2/Server/Storage/SessionInterface.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/League/OAuth2/Server/Storage/SessionInterface.php b/src/League/OAuth2/Server/Storage/SessionInterface.php index 30b0a6e1..521fe750 100644 --- a/src/League/OAuth2/Server/Storage/SessionInterface.php +++ b/src/League/OAuth2/Server/Storage/SessionInterface.php @@ -241,6 +241,19 @@ interface SessionInterface public function getAccessToken($accessTokenId); /** + * Associate scopes with an auth code (bound to the session) + * + * Example SQL query: + * + * + * INSERT INTO `oauth_session_authcode_scopes` (`session_id`, `scope_id`) VALUES (:sessionId, :scopeId) + * + * + * @param int $sessionId The session ID + * @param int $scopeId The scope ID + * @return void + */ + public function associateAuthCodeScope($sessionId, $scopeId); * Associate a scope with an access token * * Example SQL query: