Introduction

What is seamless authentication b/w the School app & zenda?

Seamless authentication between the two apps works using zenda Auto-Auth. Auto-Auth is a navigation system to zenda app from 3rd Party Apps (School apps, ERP apps etc) which enables logging the user in without the need to authenticate again, or enter any data. In this documentation, we guide you through the process of redirecting from the 3rd Party Apps (School apps, ERP apps etc) on iOS and Android to the zenda app, including pre-requisites, API reference and code snippets.

Flow of control to achieve zenda Auto-Auth

Steps

  1. Add zenda Auto-Auth code snippet to your project.

  2. Create a widget/button/link on YOUR app, to trigger redirection to the zenda app, when the widget/button/link is tapped/ clicked by the end user

  3. When the widget/button/link is tapped/ clicked by the end user,

    1. first, Generate the reference token from your backend by calling zenda’s get token API via HTTP POST method and pass the following as parameters (check the API reference section for more details):

      1. API credentials of the school

      2. Student details

      3. Parent details

      4. Landing page details

      This service will return a JSON with the values, referenceToken and expiresAt.

    2. Then, Call the open zenda authentication method along with the received properties. Example: ZendaAuth.Open(referenceToken, expiresAt)

  4. When the Open zenda authentication method is called (step 3), the end user would be guided to the zenda app,

    1. If the zenda app is installed, it will take the end user to the app directly

    2. If the zenda app is not installed, it will take the end user to the respective store for download

  5. Once the zenda app is opened, authentication request would be triggered automatically by zenda to provide the end user the access

Last updated