This shows you the differences between two versions of the page.
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 = " | string host = " | ||
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 " | Just simple " | ||
- | <code csharp> | + | <sxh csharp> |
var aducid = new AducidApiJsonServiceClient(); | var aducid = new AducidApiJsonServiceClient(); | ||
string host = " | string host = " | ||
Line 77: | Line 77: | ||
context.Response.ContentType = " | context.Response.ContentType = " | ||
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: | This page should contain [[integration-api: | ||
- | Provide start, check and proxy Url. | + | Provide start, check and proxy Url. |
+ | < | ||
| | ||
| | ||
| | ||
+ | </ | ||
Override what should be done after authentication / operation: | Override what should be done after authentication / operation: | ||
+ | < | ||
| | ||
if (result.status == " | if (result.status == " | ||
Line 121: | Line 123: | ||
} | } | ||
} | } | ||
+ | </ | ||
- | And create some HTML eleemts: | + | And create some HTML elements: |
- | <code html> | + | <sxh html> |
< | < | ||
<div class=" | <div class=" | ||
Line 151: | Line 154: | ||
</ | </ | ||
</ | </ | ||
- | </code> | + | </sxh> |