- 23 Oct 2024
- 1 Minute à lire
- SombreLumière
- PDF
Integrate time synchronization
- Mis à jour le 23 Oct 2024
- 1 Minute à lire
- SombreLumière
- PDF
Mobile Authenticator Studio can be configured to display an online time synchronization button in the Settings menu. The online time synchronization consists in requesting the server GMT time from a web service. The server GMT time must be expressed in seconds since epoch.
Time synchronization (overview)
Time synchronization request
The web service used by Mobile Authenticator Studio is configured in the OnlineSynchronization section of the configuration file:
<OnlineSynchronization>
<URL method="GET"value="http://MY_DOMAIN_NAME/MY_WEB_SERVICE" />
...
</OnlineSynchronization>
The URL can use the HTTP POST or GET methods. For more information about URL customization, refer to the Mobile Authenticator Studio Customization Guide.
Time synchronization response
The response expected by Mobile Authenticator Studio must be formatted as described in the DTD:
<!ELEMENT DP4Mobile (Activation?,PendingTransactions?)>
<!ATTLIST DP4Mobile serverTime CDATA #REQUIRED>
Example
<?xml version="1.0"encoding="UTF-8"?>
<DP4Mobile serverTime="1271862050" />
Parameter name | Description |
---|---|
//DP4Mobile/@serverTime | Required. This is the current server GMT time. This value will be used by the application to silently set the drift between device and server time to keep the application synchronized. |
The server time can be included in all requests submitted by the Mobile Authenticator Studio app (activation, online server activation, list transactions, get transaction details).
It is mandatory for activation and synchronization requests only.