A sample application showcasing authenticators using OIE android SDK

Overview

Embedded Auth with Okta OIE Android SDK - Kotlin Sample Application

The sample uses an SDK that requires usage of the Okta Identity Engine. This functionality is in general availability but is being gradually rolled out to customers. If you want to request to gain access to the Okta Identity Engine, please reach out to your account manager. If you do not have an account manager, please reach out to [email protected] for more information.

This app supports (tested)

  • Login with username/password
  • Registration and MFA with Google authenticator
  • MFA with Email magic link and Email OTP

TODO:

  • Registration and MFA with Okta Verify

Prerequisites

Before running this sample, you will need the following:

  • The Okta CLI Tool
  • An Okta Developer Account (create one using okta register, or configure an existing one with okta login). You can also register for a free account at developer.okta.com. Select Create Free Account and fill in the forms to complete the registration process. Once you are done and logged in, you will see your Okta Developer Console.
  • Android Studio (2021 or later)
  • A virtual device emulator or a real device connected to work with Android Studio
  • Java 11

Installation & Running The App

To create an app in your Okta org, run okta apps create and use the settings below.

  • Application type: Native App (mobile)
  • Login Redirect URI: com.okta.sample.android:/login
  • Logout Redirect URI: com.okta.sample.android:/logout

The issuer is the URL of the authorization server that will perform authentication.
All Developer Accounts have a "default" authorization server.
The issuer is a combination of your Org URL (found in the upper right of the console home page) and /oauth2/default. For example, https://dev-133337.okta.com/oauth2/default.

You must also set relevant policies in the Okta Admin console for your org. Follow the documentation for setting up your org

Get the Code

git clone https://github.com/okta-samples/okta-android-oie-authenticators-quickstart.git
cd okta-android-oie-authenticators-quickstart

Update okta.properties file with your Okta Issuer URL and client ID.

Run the App

Run the app on emulator or hardware device from Android Studio (shift+F10 on Linux/Windows | Ctrl + R on macOS)

If you see a home page with a login screen, then things are working! Clicking the Login button will start the IDX authentication flow

You can sign in with the same account that you created when signing up for your developer org, or you can use a known username and password from your Okta Directory.

To test MFA-authenticators, create a new user in Okta admin console and try log in in with that user so that you get a chance to enroll MFA

You might also like...
Examples of using Torus CustomAuth Android SDK

Torus CustomAuth Android Samples Examples of using Torus CustomAuth Android SDK. Usage Clone the repository and open with Android Studio Run the app,

Make SIP calls from react-native using Linphone SDK

react-native-sip Make SIP calls from react-native using Linphone SDK Installation npm install react-native-sip Usage import { multiply } from "react-n

 🍲Foodium is a sample food blog Android application 📱 built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, Flow, Dagger 2/Hilt, Architecture Components, MVVM, Room, Retrofit, Moshi, Material Components).
This is a sample Android project that presents a modern approach to Android application development.

Movies It is a sample app that shows information about movies and series. The goal is build a scalable, maintainable and testable app, implementing go

Android-splash-screen-demo - Sample application to demo the various features provided in android-splash-screen
Android-splash-screen-demo - Sample application to demo the various features provided in android-splash-screen

Android Splash screen API demo This is a sample application used to demonstrate the various features provided in android-splash-screen. More details c

Sample application demonstrating Android design and animation
Sample application demonstrating Android design and animation

android-movies-demo This is a sample application showing off some interesting design/development interactions for a talk given at Droidcon 2013. As it

Chat is a sample project that presents a modern, 2021 approach to Android application development.
Chat is a sample project that presents a modern, 2021 approach to Android application development.

Chat for Android Chat is a sample project that presents a modern, 2021 approach to Android application development. Screenshots 📷

Android Application sample in Compose demostrating the power of Paging
Android Application sample in Compose demostrating the power of Paging

UserList Android Application sample in Compose demostrating the power of Paging Screenshots License Licensed under the Apache License, Version 2.0, cl

An Android application sample for ClearScore coding challenge

ClearScoreChallenge An Android application sample for ClearScore coding challenge Libraries Coroutines for managing background threads. (A coroutine i

Owner
Okta Sample Apps
Okta Sample Apps
:movie_camera: Movie discovery app showcasing Android best practices with Google's recommended architecture: MVVM + Repository + Offline support + Android Architecture Components + Paging library & Retrofit2.

Popular Movies Stage 1 + Stage 2 Discover the most popular and top rated movies playing. Movies data fetched using themoviedb.org API. ✨ Screenshots M

Yassin AJDI 189 Nov 26, 2022
Movie discovery app showcasing MVP, RxJava, Dagger 2 and Clean Architecture

MovieGuide ?? Refactoring in progress ??‍♀️ ⛏ ?? ??️ ?? ?? ?? Comments and new issues are welcome. ?? Currently not accepting external PRs that touch

Arun Sasidharan 2.6k Dec 25, 2022
A demo project showcasing different exercises + details with prepopulated data from room. Includes tests

README Pre-requisites I used Android Studio Bumblebee (2021.1.1). In case of any issues, do let me know because I understand that issues might vary fo

Carol 24 Nov 17, 2022
A simple Android app to demonstrate the use of Hover SDK for M-PESA Send Money while offline. This SDK does not require an internet connection, it automates USSD sessions in the background of an android application.

HoverSDKDemo Hover SDK is an Android SDK that lets mobile developers to add money features to the applications. This SDK does not require an internet

Joel Kanyi 9 Dec 21, 2022
Unity-Android-SDK-Plugins - Android SDK/Library/Plugins (aar) for Unity Developers

Unity Android SDK Plugins Unity Android SDK Plugins is an Open Source project th

NNK 1 Aug 14, 2022
Sample crypto wallet for Wallet Link SDK.

DemoWallet This repo is sample app for Wallet Link SDK. WalletLink is an open protocol that lets users connect their mobile wallets to your DApp. With

null 0 Dec 17, 2021
AppUI Sample Application - display how you can create your own custom AppUI application within a few minutes

AppUI Sample Application This is an open-source project to display how you can create your own custom AppUI application within a few minutes. I have a

Formaloo 5 Sep 5, 2022
Sample application to show state management & unidirectional data flow using Jetpack compose.

Jetpack Compose State Management A sample project to demonstrate State Management in Jetpack compose by following This CodeLab. Through the project yo

Rafsan Ahmad 9 Nov 1, 2022
This repo provides a sample application that demonstrates how you can speed up the authentication experience for frontline workers on shared devices using QR codes.

Project This repo has been populated by an initial template to help get you started. Please make sure to update the content to build a great experienc

Microsoft 5 Dec 7, 2022
This is an Augmented Reality Android app that is made by using ARcore and Sceneform SDK. 📸 🎉

ARCore Furniture Sample Furniture Sample with Scenform SDK This is a Augmented Reality Android app which is made by using ARcore and Sceneform SDK. Au

Simform Solutions 15 Nov 9, 2022