User Tools

Site Tools


developers:integration:wsa

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
Previous revision
developers:integration:wsa [2018/06/27 14:31]
tjotov
developers:integration:wsa [2019/08/01 10:07]
tjotov removed
Line 31: Line 31:
 This page starts authentication request. This page starts authentication request.
  
-<code csharp>+<sxh csharp>
 var aducid = new AducidApiJsonServiceClient(); var aducid = new AducidApiJsonServiceClient();
 string host = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port; string host = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port;
Line 56: Line 56:
 //send response //send response
 context.Response.Write(response); context.Response.Write(response);
-</code>+</sxh>
  
 OperationArgument is a simple object OperationArgument is a simple object
-<code csharp>+<sxh csharp>
 public class OperationArgument public class OperationArgument
     {     {
Line 68: Line 68:
         public Boolean generateQrCodePicture { get; set; }         public Boolean generateQrCodePicture { get; set; }
     }     }
-</code>+</sxh>
 === Create WSA proxy === === Create WSA proxy ===
 Just simple "Rewrite" from WSA to C# with authId check Just simple "Rewrite" from WSA to C# with authId check
-<code csharp>+<sxh csharp>
 var aducid = new AducidApiJsonServiceClient(); var aducid = new AducidApiJsonServiceClient();
 string host = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port; string host = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port;
Line 77: Line 77:
 context.Response.ContentType = "text/plain"; context.Response.ContentType = "text/plain";
 context.Response.Write(response); context.Response.Write(response);
-</code>+</sxh>
  
 === Create check Url === === Create check Url ===
Line 83: Line 83:
 There are two basic results – authentication is OK or an error is thrown: There are two basic results – authentication is OK or an error is thrown:
  
-<code csharp>+<sxh csharp>
 var aducid = new AducidApiJsonServiceClient(); var aducid = new AducidApiJsonServiceClient();
 //read authId from you session //read authId from you session
Line 101: Line 101:
 //send response //send response
 context.Response.Write(response); context.Response.Write(response);
-</code>+</sxh>
  
  
 === Prepare a web page === === Prepare a web page ===
 This page should contain [[integration-api:start|ADUCID Integration API]]\\ This page should contain [[integration-api:start|ADUCID Integration API]]\\
-Provide start, check and proxy Url. +Provide start, check and proxy Url. 
 +<sxh> 
    aducid.setStartOperationUrl("open");    aducid.setStartOperationUrl("open");
    aducid.setResultOperationUrl("openCheck");    aducid.setResultOperationUrl("openCheck");
    aducid.setProxyUrl("proxy");    aducid.setProxyUrl("proxy");
 +</sxh>
 Override what should be done after authentication / operation: Override what should be done after authentication / operation:
 +<sxh> 
    aducid.processResult = function (result) {    aducid.processResult = function (result) {
                 if (result.status == "OK") {                 if (result.status == "OK") {
Line 121: Line 123:
                 }                 }
             }             }
 +</sxh> 
  
-And create some HTML eleemts:+And create some HTML elements:
  
-<code html>+<sxh html>
 <h1>ADUCID Hello World example</h1> <h1>ADUCID Hello World example</h1>
         <div class="row">         <div class="row">
Line 151: Line 154:
             </div>             </div>
         </div>         </div>
-</code>+</sxh>