We are developing Okta integration with our Android App using the Okta SDK.
The app successfully authenticates when Chrome is used as the supporting browser.
However, we are unable to use Chrome as users are able to freely browse the internet, something that we wish to prohibit.
We use SOTI and are able to whitelist the addresses needed using SOTI Surf however, despite us adding this as a supported browser, the browser fails to launch with the error "No compatible browsers found":
WebAuthClient client = new Okta.WebAuthBuilder()
.withConfig(config)
.withContext(this)
.withStorage(new SharedPreferenceStorage(this))
.withCallbackExecutor(Executors.newSingleThreadExecutor())
.withTabColor(Color.BLUE)
.supportedBrowsers("com.android.chrome", "org.mozilla.firefox", "net.soti.surf")
.create();
Copying the link generated by the APK from Chrome into SOTI Surf authenticates successfully and returns the user to our app - the problem is launching it.
Any ideas how we can either:
- Successfully launch SOTI Surf, or
- Launch Chrome but remove the menu bar completely.
Many thanks
question from:
https://stackoverflow.com/questions/65943581/soti-surf-as-supported-browser-for-okta-android-sdk 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…