bottle_auth/core/auth.py
def get_authenticated_user(self, callback):
        """Fetches the authenticated user data upon redirect.

        This method should be called by the handler that receives the
        redirect from the authenticate_redirect() or authorize_redirect()
        methods.
        """
        # Verify the OpenID response via direct request to the OP
        # Recommendation @hmarrao, ref #3
        args = dict((k, unicode(v[-1]).encode('utf-8')) for k, v in self.request.arguments.iteritems())
        args["openid.mode"] = u"check_authentication"
        url = self._OPENID_ENDPOINT
        http = httpclient.AsyncHTTPClient()
        log.debug("OpenID requesting {0} at uri {1}".format(args, url))
        http.fetch(url, self.async_callback(
            self._on_authentication_verified, callback),
            method="POST", body=urllib.urlencode(args))
def get_authenticated_user(self, callback):
        """Fetches the authenticated user data upon redirect.

        This method should be called by the handler that receives the
        redirect from the authenticate_redirect() or authorize_redirect()
        methods.
        """
        # Verify the OpenID response via direct request to the OP
        # Recommendation @hmarrao, ref #3
        args = dict((k, unicode(v[-1]).encode('utf-8')) for k, v in self.request.arguments.iteritems())
        args["openid.mode"] = u"check_authentication"
        url = self._OPENID_ENDPOINT
        http = httpclient.AsyncHTTPClient()
        log.debug("OpenID requesting {0} at uri {1}".format(args, url))
        http.fetch(url, self.async_callback(
            self._on_authentication_verified, callback),
            method="POST", body=urllib.urlencode(args))
def get_authenticated_user ( self , callback ) : # Verify the OpenID response via direct request to the OP # Recommendation @hmarrao, ref #3 args = dict ( ( k , unicode ( v [ - 1 ] ) . encode ( 'utf-8' ) ) for k , v in self . request . arguments . iteritems ( ) ) args [ "openid.mode" ] = u"check_authentication" url = self . _OPENID_ENDPOINT http = httpclient . AsyncHTTPClient ( ) log . debug ( "OpenID requesting {0} at uri {1}" . format ( args , url ) ) http . fetch ( url , self . async_callback ( self . _on_authentication_verified , callback ) , method = "POST" , body = urllib . urlencode ( args ) )
Fetches the authenticated user data upon redirect.

        This method should be called by the handler that receives the
        redirect from the authenticate_redirect() or authorize_redirect()
        methods.
Fetches the authenticated user data upon redirect .