OwnID iOS SDK Integration
Integrate OwnID into your iOS 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 iOS OwnID SDK configuration guide
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 async/await
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?