<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009w7B4nCAEOkta Classic EngineAuthenticationAnswered2024-01-08T23:14:18.000Z2024-01-05T14:57:58.000Z2024-01-08T23:14:18.000Z
Within a native app. How would I manage a users login inside of a web view?

Hello,

 

We have several web apps and several mobile apps that all use Okta. We are trying to consolidate it down to a single mobile application.

 

I am creating a proof of concept that will create a single native app and it will allow the user to load the relevant web view of whatever they are trying to access. E.g. the user could select payments, this will load the payments app in a payments web view.

 

Currently, whenever I load a web view, I see a login screen. This is happening because the native app sign-in is not creating an Okta session that is available within the web view. When we make a call to authorize within the web view, there is no Okta session to authenticate against and the user is kicked back to the login screen.

 

I am struggling to understand my options here. The idea I am toying with is the native app could store the user's credentials on the key chain with a biometric check. When the user selects a feature, the native app would generate an access token for that app using the stored credentials. I think I can then inject the token into the web view's session storage and maybe that would work. The native app would manage the session, periodically updating the token within the web view's session storage. I am not sure if this is a good idea or a terrible one.

 

Is there a better approach to this problem?


This question is closed.
Loading
Within a native app. How would I manage a users login inside of a web view?