def _get_token(self, oauth_request, consumer, token_type='access'):
        token_field = oauth_request.get_parameter('oauth_token')
        token = self.data_store.lookup_token(consumer, token_type, token_field)
        if not token:
            raise OAuthError('Invalid %s token: %s' % (token_type, token_field))
        return token
dataset/ETHPy150Open benadida/helios-server/helios_auth/security/oauth.py/OAuthServer._get_token/original