User Tools

Site Tools


integration-api:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
integration-api:start [2018/11/12 12:52]
mpospisek [Web Integration API]
integration-api:start [2018/11/12 12:57]
mpospisek [Basic usage with AAA]
Line 10: Line 10:
 ===== Basic usage with AAA ===== ===== Basic usage with AAA =====
 Create instance of ADUCID object: Create instance of ADUCID object:
 +<sxh java>
     var aducid = new ADUCID();     var aducid = new ADUCID();
 +</sxh>
  
 Set addresses of start, check and proxy operation of aducid-binder:  Set addresses of start, check and proxy operation of aducid-binder: 
 +<sxh java>
    aducid.setStartOperationUrl("/aducid-binder/open");    aducid.setStartOperationUrl("/aducid-binder/open");
    aducid.setResultOperationUrl("/aducid-binder/openCheck");    aducid.setResultOperationUrl("/aducid-binder/openCheck");
    aducid.setProxyUrl("/aducid-binder/proxy");    aducid.setProxyUrl("/aducid-binder/proxy");
 +</sxh>
                  
 Override default methods to customize you page: Override default methods to customize you page:
 +<sxh java>
    aducid.processResult = function(result) {    aducid.processResult = function(result) {
       if (result.status == "OK") {       if (result.status == "OK") {
Line 28: Line 32:
       }       }
    }    }
 +</sxh>
  
 Text displayed before operation    Text displayed before operation   
 +<sxh java>
    aducid.showQRHint = function(param) {    aducid.showQRHint = function(param) {
       $('#qr-code-hint').html("Example text - Use your PEIG to authenticate");       $('#qr-code-hint').html("Example text - Use your PEIG to authenticate");
    }    }
 +</sxh>
        
 Text displayed duringoperation    Text displayed duringoperation   
 +<sxh java>
    aducid.showRunningHint = function(param) {    aducid.showRunningHint = function(param) {
       $('#qr-code-hint').html("Example text - Operation in progress");       $('#qr-code-hint').html("Example text - Operation in progress");
    }    }
 +</sxh>
        
 ===== Detailed description ===== ===== Detailed description =====