sap.AuthProxy.CertificateFromLogonManager class

Create a certificate source description object for certificates from logon manager.

Using the resulting certificate source description object on subsequent calls to AuthProxy.sendRequest or AuthProxy.get will cause AuthProxy to retrieve a certificate from Logon Manager to use for client authentication. The appID parameter is used to indicate which application's certificate to use.


Note that to use a certificate from Logon Manager, the application must have already registered with the server using a certificate from Afaria.

Syntax

new CertificateFromLogonManager( appID )

Parameters

Name Type Description
appID string application identifier

Example

// Create the certificate source description object.
var logonCert = new sap.AuthProxy.CertificateFromLogonManager("applicationID");
// callbacks
var successCB = function(serverResponse){
    alert("Status: " + JSON.stringify(serverResponse.status));
    alert("Headers: " + JSON.stringify(serverResponse.headers));
    alert("Response: " + JSON.stringify(serverResponse.response));
}
var errorCB = function(errorObject){
    alert("Error making request: " + JSON.stringify(errorObject));
}
// Make the request with the certificate source description object.
sap.AuthProxy.sendRequest("POST", "https://hostname", headers, "THIS IS THE BODY", successCB, errorCB, null, null, 0, logonCert);

Source

authproxy.js, line 282.