OwnID Android SDK Integration
Integrate OwnID into your Android app
Overview
OwnID Elite offers fully guided, secure, and streamlined webview screens for authentication. They can be easily customized with your brand’s look and feel.
Prerequisites
- Complete the Android OwnID SDK configuration guide
Create OwnID Instance
Update your Application class to use the create an OwnID Instance:
Implementation
Elite provides pre-built webview authentication screens that can be easily customized. Implementation involves creating providers and setting up event handlers.
Providers Setup
Providers allow you to define how users are authenticated, how sessions are maintained and how accounts are managed within the application. All providers use suspend
functions.
Create the following providers:
- Session Provider: Manages user session creation.
- Account Provider: Handles account creation. If you want to handle account creation on your own, skip this provider. You will use the
onAccountNotFound
event handler explained later in this guide. - Authentication Provider: Manages various authentication mechanisms, including Password-based authentication provider.
Here’s an example of providers setup:
Check an example of OwnId.providers
implementation here
Start Authentication
To start the authentication flow, call the start()
function.
You can define event handlers for specific actions and responses within the authentication flow. They allow to customize behavior when specific events occur. All event handlers are optional.
Check an example of OwnId.start
implementation here
Was this page helpful?