test/oic_op/config_server/static/op_config.js
/**
     * Confirms that the configuration successfully has been retried from the server. Then is downloaded to the
     * clients computer.
     * @param data - The result returned from the server
     * @param status - The status on the response from the server
     * @param headers - The header on the response from the server
     * @param config - The configuration on the response from the server
     */
Confirms that the configuration successfully has been retried from the server. Then is downloaded to the
clients computer.
@param data - The result returned from the server
@param status - The status on the response from the server
@param headers - The header on the response from the server
@param config - The configuration on the response from the server
Confirms that the configuration successfully has been retried from the server . Then is downloaded to the clients computer . @param data - The result returned from the server @param status - The status on the response from the server @param headers - The header on the response from the server @param config - The configuration on the response from the server
function downloadConfigFileSuccessCallback(data, status, headers, config) {
        configDict = JSON.stringify(data["configDict"])
        var a = document.createElement("a");
        a.download = "config.json";
        a.href = "data:text/plain;base64," + btoa(configDict);
        document.body.appendChild(a)
        a.click();
        document.body.removeChild(a)
    }
function downloadConfigFileSuccessCallback ( data , status , headers , config ) { configDict = JSON . stringify ( data [ "configDict" ] ) var a = document . createElement ( "a" ) ; a . download = "config.json" ; a . href = "data:text/plain;base64," + btoa ( configDict ) ; document . body . appendChild ( a ) a . click ( ) ; document . body . removeChild ( a ) }
Confirms that the configuration successfully has been retried from the server.
Confirms that the configuration successfully has been retried from the server .
//Appending the element a to the body is only necessary for the download to work in firefox