def update_site(self, client_secret_expires_at=None):
        """Function to update the site's information with OpenID Provider.
        This should be called after changing the values in the cfg file.

        Parameters:
            * **client_secret_expires_at (long, OPTIONAL):** milliseconds since 1970, can be used to extends client lifetime

        Returns:
            **bool:** The status for update. True for success and False for failure

        Raises:
            **OxdServerError:** When the update fails and oxd server returns error
        """
        params = {
            "oxd_id": self.oxd_id,
            "authorization_redirect_uri": self.authorization_redirect_uri
        }

        if client_secret_expires_at:
            params["client_secret_expires_at"] = client_secret_expires_at

        for param in self.opt_params:
            if self.config.get("client", param):
                value = self.config.get("client", param)
                params[param] = value

        for param in self.opt_list_params:
            if self.config.get("client", param):
                value = self.config.get("client", param).split(",")
                params[param] = value

        logger.debug("Sending `update_site` with params %s",
                     params)
        response = self.msgr.request("update_site", **params)
        logger.debug("Received response: %s", response)

        if response['status'] == 'error':
            raise OxdServerError(response['data'])

        return True
def update_site ( self , client_secret_expires_at = None ) : params = { "oxd_id" : self . oxd_id , "authorization_redirect_uri" : self . authorization_redirect_uri } if client_secret_expires_at : params [ "client_secret_expires_at" ] = client_secret_expires_at for param in self . opt_params : if self . config . get ( "client" , param ) : value = self . config . get ( "client" , param ) params [ param ] = value for param in self . opt_list_params : if self . config . get ( "client" , param ) : value = self . config . get ( "client" , param ) . split ( "," ) params [ param ] = value logger . debug ( "Sending `update_site` with params %s" , params ) response = self . msgr . request ( "update_site" , ** params ) logger . debug ( "Received response: %s" , response ) if response [ 'status' ] == 'error' : raise OxdServerError ( response [ 'data' ] ) return True
Function to update the site's information with OpenID Provider.
        This should be called after changing the values in the cfg file.

        Parameters:
            * **client_secret_expires_at (long, OPTIONAL):** milliseconds since 1970, can be used to extends client lifetime

        Returns:
            **bool:** The status for update. True for success and False for failure

        Raises:
            **OxdServerError:** When the update fails and oxd server returns error