On this page
Add user authentication to your iOS app
Get started with iOS + Okta
These resources walk you through adding user authentication to your iOS app in minutes.
Add sign-in with Okta to your app
There are two ways to integrate sign-in with Okta to your app. The easiest to integrate is the redirect model that uses the Okta-hosted Sign-In Widget. You open the widget, Okta processes the sign-in attempt, and then sends the result to your app. The other is the embedded model, where you manage each step in the sign-in flow. See Overview of the mobile Identity Engine SDK for more detail.
Use the redirect model
This method works with both Okta Identity Engine and Okta Classic Engine.
SDK: Okta Mobile SDK for Swift (opens new window).
Example: Browser sign-in (opens new window).
Use the embedded model
This method works only with Identity Engine.
SDK: Identity Engine Swift SDK (opens new window).
Example: iOS embedded authentication with SDK sample app (opens new window).
Recommended guides
Okta-hosted Sign-In Widget guide:
Sign users in to your mobile app using the redirect model
Embedded SDK and Sign-In Widget sign-in guide:
- Overview of the mobile Identity Engine SDK
- Get set up with Identity Engine sample apps and embedded use cases
Other guides:
- Implement the Authorization Code flow with PKCE
- Add an identity provider (includes social login)
- Validate access tokens
- Validate ID tokens
Note: Browse our recent iOS Developer Blog posts (opens new window) for further useful topics.