Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

single sign on - Soti Surf As Supported Browser For Okta Android SDK

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:

  1. Successfully launch SOTI Surf, or
  2. 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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Had confirmed by SOTI, that SOTI Surf doesn’t not support Chrome Custom Tabs - which is required under the Okta SDK.

It is possible to use Chrome and apply web filtering using SOTI, however the device needs to be on Android Enterprise, not Android Plus.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...