Use the sample iOS app that you cloned from GitHub to test how multiple apps can share a browser session with iOS.
Install the dependencies
To install the Okta Browser Sign-in sample app dependencies into your project, this guide uses CocoaPods.
Enter the following at the command line inside the sample app:
pod install
Note: Be sure to work within the Okta BrowserSignIn Workspace in Xcode after you do pod install
.
Modify the configuration file
Make the following modifications in the OktaBrowserSignIn/Okta.plist
file of your sample app:
redirectUri
: Enter com.first.sample:/callback
as the value, which is what you defined as the Login Redirect URI in the Native app that you created in the last step.
clientId
: Enter the Client ID that you copied during the last step.
issuer
: This is the URL for the authorization server that performs authentication. It's a combination of your Org URL that appears in the upper-right corner of your Okta Org dashboard and /oauth2/default
.
For example: https//{yourOrgURL}/oauth2/default
logoutRedirectUri
: Enter com.first.sample:/logout
as the value, which is what you defined as the Logout Redirect URI in the Native app that you created in the last step.