HomeDeveloper ReferenceTally Authentication LibraryWorking of Tally Authentication Library

 

Explore Categories

 

 PDF

Working of Tally Authentication Library

On invoking the mobile application, Tally Authentication Library displays a login interface. When the user submits the Tally.NET login ID and password, Tally Authentication Library validates the credentials.

Modes of Working

 Online Mode

Online mode allows the mobile application to connect and communicate with TallyPrime through Tally.NET Server . In this mode, current data can be fetched from TallyPrime. Internet/data connectivity is required to operate in this mode.

The communication in online mode is shown below :

Process Flow

  1. The mobile application sends request to Tally.NET Server to validate the user credentials. Tally.NET Server returns the session ID to Tally Authentication Library.
  2. The mobile application sends request to Tally.NET Server to get the list of online companies accessible to the user. User needs to select a company.
  3. The mobile application sends these requests to TallyPrime to get specific data from the selected company:
    • The mobile application sends request to partner’s server.
    • The partner’s server forwards the request to Tally.NET Server .
    • Tally.NET Server then forwards the request to TallyPrime.
    • TallyPrime processes the received XML request, and sends appropriate response to Tally.NET Server .
    • Tally.NET Server forward the response to partner’s server.
    • The partner’s server forwards the response to the mobile application.

Offline Mode

Offline mode allows the mobile application to authenticate user locally. In this mode, data which was fetched from TallyPrime in the most recent online session, and stored by the mobile application, can be shown to the user. Internet/data connectivity is not required to operate in this mode.

The user authentication in offline mode is shown below:

Process Flow

  • Tally Authentication Library authenticates the user credentials against the locally cached values.
  • The mobile application can use the data retained locally during the most recent online session.
 Note:  Tally Authentication Library handles only user authentication. Mobile application developers need to design and develop the subsequent steps.

All requests from the mobile application after successful authentication, need to contain the session ID provided by Tally Authentication Library, in online mode.

Developers need to handle the data fetched/retrieved in online session to access the data in offline sessions. To use the test application, the library needs to point to the test server mentioned in   Test Environment   .

 

TallyHelpwhatsAppbanner
Is this information useful?
YesNo
Helpful?