Skip to main content

This is a prototype of the transaction set.

The following transaction set contains prototype XML fragments for each of the wAuth transactions. Each wClient API call translates in to a transmission of one of the following <transaction></transaction> blocks to the WiKID server. The transaction will be returned with the appropriate server values completed.

<transaction-set>
    <transaction>
        <type>
            0     <!--PING-->
        </type>
        <data>
            <value>TX | ACK</value>
        </data>
    </transaction>

    <transaction>
        <type>
            1     <!--CONNECT-->
        </type>
        <data>
            <client-string>wClient Java 3.0</client-string>
            <server-string>wAuth 3.0</server-string>
            <result>ACCEPT</result>
        </data>
    </transaction>

    <transaction>
        <type format="base | chap | chapoff | offline ">
            2     <!--VERIFY-->
        </type>
        <data>
            <user-id>foo</user-id>
            <passcode>000000</passcode>
            <domaincode>127000000001</domaincode>
            <offline-challenge encoding="none | base64">offline challenge</offline-challenge>
            <offline-response encoding="none | base64">offline challenge</offline-response>
            <chap-password encoding="none | base64">chap password</chap-password>
            <chap-challenge encoding="none | base64">chap challenge</chap-challenge>
            <result>VALID | INVALID</result>
        </data>
    </transaction>

    <transaction>
        <type>
            3     <!--DOMAINS-->
        </type>
        <data>
            <domain-list>
                <domain>
                    <name>domain1</name>
                    <domaincode>127000000001</domaincode>
                </domain>
                <domain>
                    <name>domain2</name>
                    <domaincode>127000000002</domaincode>
                </domain>
            </domain-list>
        </data>
    </transaction>

    <transaction>
        <type format="new | add | add-no-check">
            4     <!--REGUSER-->
        </type>
        <data>
            <user-id>foo</user-id>
            <registration-code>Sdfsedfg</registration-code>
            <domaincode>127000000001</domaincode>
            <result>SUCESS | FAILED</result>
            <error-code>1</error-code>
        </data>
    </transaction>

    <transaction>
        <type>
            5     <!--FINDUSERBYNAME-->
        </type>
        <data>
            <domaincode>127000000001</domaincode>
            <user-id>foo</user-id>
            <user>
                <user-id>foo</user-id>
                <id_usermap>0</id_usermap>
                <bad-passcode-attempts>0</bad-passcode-attempts>
                <creation format="ms">19837645652</creation>
                <domaincode>127000000001</domaincode>
                <status>1</status>
                <token-list>
                    <token>
                        <device-id>837278638764747</device-id>
                        <domain-id>3456</domain-id>
                        <offline-public-key encoding="base64">b64 encoded key</offline-public-key>
                        <status>1</status>
                        <bad-pin-attempts>0</bad-pin-attempts>
                        <offline-authentication-count>0</offline-authentication-count>
                        <creation format="ms">19837645652</creation>
                        <changed>false</changed>
                        <id_devicemap>1</id_devicemap>
                    </token>
                </token-list>
            </user>
            <result>SUCESS | FAILED</result>
            <return-code>1</return-code>
        </data>
    </transaction>

    <transaction>
        <type>
            6     <!--UPDATEUSER-->
        </type>
        <data>
            <user>
                <user-id>foo</user-id>
                <id_usermap>0</id_usermap>
                <bad-passcode-attempts>0</bad-passcode-attempts>
                <creation format="ms">19837645652</creation>
                <domaincode>127000000001</domaincode>
                <status>1</status>
                <token-list>
                    <token>
                        <device-id>837278638764747</device-id>
                        <domain-id>3456</domain-id>
                        <offline-public-key encoding="base64">b64 encoded key</offline-public-key>
                        <status>1</status>
                        <bad-pin-attempts>0</bad-pin-attempts>
                        <offline-authentication-count>0</offline-authentication-count>
                        <creation format="ms">19837645652</creation>
                        <changed>false</changed>
                        <id_devicemap>1</id_devicemap>
                    </token>
                </token-list>
            </user>
            <result>FAILED | SUCCESS</result>
            <return-code>1</return-code>
        </data>
    </transaction>

    <transaction>
        <type>
            7     <!--DELETEUSER-->
        </type>
        <data>
            <user>
                <user-id>foo</user-id>
                <id_usermap>0</id_usermap>
                <bad-passcode-attempts>0</bad-passcode-attempts>
                <creation format="ms">19837645652</creation>
                <domaincode>127000000001</domaincode>
                <status>1</status>
                <token-list>
                    <token>
                        <device-id>837278638764747</device-id>
                        <domain-id>3456</domain-id>
                        <offline-public-key encoding="base64">b64 encoded key</offline-public-key>
                        <status>1</status>
                        <bad-pin-attempts>0</bad-pin-attempts>
                        <offline-authentication-count>0</offline-authentication-count>
                        <creation format="ms">19837645652</creation>
                        <changed>false</changed>
                        <id_devicemap>1</id_devicemap>
                    </token>
                </token-list>
            </user>
            <result>FAILED | SUCCESS</result>
            <return-code>1</return-code>
        </data>
    </transaction>


</transaction-set>


 

Copyright © WiKID Systems, Inc. 2024 | Two-factor Authentication