I’m trying to implement SSO with PKCE on mobile.
Since it is the first time I work with Okta for mobile, I started with this article about the new available mobile SDKs.
I’m using WebAuthenticationUI for web-based OIDC authentication, that it is based on AuthorizationCodeFlow, which seems to works fine for SignIn, SignOut.
But then in the Swift Github examples I find that in the WebSignIn (iOS) application after getting the token it is saved in the keychain:
try Keychain.saveDeviceSSO(token)
And then in another example SingleSignOn (iOS) it is retrieved to use TokenExchangeFlow.
In summary, I’d like to know what is the correct path, steps to implement SSO with PKCE on mobile, is it enough to use only the WebAuthenticationUI library or is it necessary to add the TokenExchangeFlow code too?