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 Both sides next revision
developers:integration:wsa [2018/06/27 14:27]
tjotov
developers:integration:wsa [2018/06/27 14:29]
tjotov
Line 51: Line 51:
 //parse and store authId //parse and store authId
 dynamic responseObj = JsonConvert.DeserializeObject(response); dynamic responseObj = JsonConvert.DeserializeObject(response);
-//store authId to your session+//store authId in your session
 context.Session["123"] = (string) responseObj.data.authId; context.Session["123"] = (string) responseObj.data.authId;
 context.Response.ContentType = "text/plain"; context.Response.ContentType = "text/plain";
Line 107: Line 107:
 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. 
- aducid.setStartOperationUrl("myOpen"); +   aducid.setStartOperationUrl("open"); 
- aducid.setResultOperationUrl("myPpenCheck"); +   aducid.setResultOperationUrl("openCheck"); 
- aducid.setProxyUrl("myProxy");+   aducid.setProxyUrl("proxy");
  
 +And create some HTML eleemts:
 +
 +<code html>
 +<h1>ADUCID Hello World example</h1>
 +        <div class="row">
 +            <div class="col-xs-8 col-xs-offset-2">
 +
 +                <div class="row">
 +                    <div class="col-xs-8 col-xs-offset-2">
 +                        <div id="main-button" class="btn btn-primary btn-lg center-block">Authenticate</div>
 +                    </div>
 +                </div>
 +                <div class="row">
 +                    <img id="qr-code" alt="" class="img-responsive center-block" />
 +                </div>
 +
 +                <div class="row text-center">
 +                    <div id="qr-code-timer" class="qr-code-timer img-responsive center-block"></div>
 +                    <div id="qr-code-hint" class="qr-code-hint"></div>
 +                </div>
 +
 +                <div id="peig-error" style="display: none;">
 +                    <h2>PEIG Error</h2>
 +                    <a class='btn  btn-lg' href='http://www.aducid.com/support/' data-lang="aducid_common_installPeig">Install PEIG</a>
 +                    <br />
 +                    <div class='btn btn-lg' onclick="location.reload()" data-lang="aducid_common_tryAgain">Try again</div>
 +                </div>
 +            </div>
 +        </div>
 +</code>