(self, session)
return session
Authenticate an OAUTH session.

        Args:
            session: Authorized session object.
Authenticate an OAUTH session.
Authenticate an OAUTH session .
def authenticate_oauth_session(self, session):
        """Authenticate an OAUTH session.

        Args:
            session: Authorized session object.
        """
        # Authenticate to the Timesketch backend.
        login_callback_url = '{0:s}{1:s}'.format(
            self._host_uri, self.DEFAULT_OAUTH_API_CALLBACK)
        params = {
            'id_token': session.credentials.id_token,
        }
        response = session.get(login_callback_url, params=params)
        if response.status_code not in definitions.HTTP_STATUS_CODE_20X:
            error.error_message(
                response, message='Unable to authenticate', error=RuntimeError)

        self._set_csrf_token(session)
        return session
def authenticate_oauth_session ( self , session ) : # Authenticate to the Timesketch backend. login_callback_url = '{0:s}{1:s}' . format ( self . _host_uri , self . DEFAULT_OAUTH_API_CALLBACK ) params = { 'id_token' : session . credentials . id_token , } response = session . get ( login_callback_url , params = params ) if response . status_code not in definitions . HTTP_STATUS_CODE_20X : error . error_message ( response , message = 'Unable to authenticate' , error = RuntimeError ) self . _set_csrf_token ( session ) return session