Add web-based sign in and single sign-on that uses the token exchange flow from the OAuth 2.0 specification with the BrowserSignin Library.
The Okta Client SDK for Swift provides a libraries and utility classes that manage standard sign-on flows. The BrowserSignin class manages the web-based sign-on process, while the TokenExchangeFlow class manages the OAuth 2.0 token exchange flow used to implement Single Sign On (SSO).
The sample contains two different targets:
- WebSignIn (iOS): The iOS app that implements web-based sign on.
- SingleSignOn (iOS): A companion app that uses the account information from WebSignIn (iOS) to sign the user on.
Update the WebSignIn (iOS) > WebSignIn > Okta.plist file with the information for your Okta Org Application Integration. See the Readme in the Shared folder for a the definition of the keys in Okta property list file.
IMPORTANT: This sample requires a value for the optional
logoutRedirectUrikey. Thedevice_ssoscope should be included if you wish to try the SingleSignOn sample app.
- For information on configuring the device SSO feature in your Okta Admin Console, see Configure Native SSO for your Okta org.
- Okta Client SDK for Swift