public function getAuthCodeScopes($oauthSessionAuthCodeId)
    {
        $scopesResults = DB::table('oauth_session_authcode_scopes')
                ->where('oauth_session_authcode_id', '=', $oauthSessionAuthCodeId)
                ->get();

        $scopes = array();

        foreach($scopesResults as $key=>$scope)
        {
			$scopes[$key] = get_object_vars($scope);

		}
        
        return $scopes;
        
    }
public function getAuthCodeScopes($oauthSessionAuthCodeId)
    {
        $scopesResults = DB::table('oauth_session_authcode_scopes')
                ->where('oauth_session_authcode_id', '=', $oauthSessionAuthCodeId)
                ->get();

        $scopes = array();

        foreach($scopesResults as $key=>$scope)
        {
			$scopes[$key] = get_object_vars($scope);

		}
        
        return $scopes;
        
    }
public function getAuthCodeScopes ( $ oauthSessionAuthCodeId ) { $ scopesResults = DB :: table ( 'oauth_session_authcode_scopes' ) -> where ( 'oauth_session_authcode_id' , '=' , $ oauthSessionAuthCodeId ) -> get ( ) ; $ scopes = array ( ) ; foreach ( $ scopesResults as $ key => $ scope ) { $ scopes [ $ key ] = get_object_vars ( $ scope ) ; } return $ scopes ; }
Get the scopes associated with an auth code

Example SQL query:

<code>
SELECT scope_id FROM `oauth_session_authcode_scopes` WHERE oauth_session_authcode_id = :authCodeId
</code>

Expected response:

<code>
array(
array(
'scope_id' => (int)
),
array(
'scope_id' => (int)
),
...
)
</code>

@param  int   $oauthSessionAuthCodeId The session ID
@return array
Get the scopes associated with an auth code