-
public final class WebViewOAuthManagerManages external navigation and OAuth flows.
Routes to:
handleOAuthFlow(): Uses OAuthHandler for OAuth authentication
openInExternalBrowser(): Opens external links in browser
Security hardening:
F-010: Only https (and optionally http) URL schemes are permitted when opening a URL in the external browser. Dangerous schemes such as javascript:, file://, content:// and intent:// are rejected.
F-007: URLs are not logged in release builds.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWebViewOAuthManager.Companionpublic interfaceWebViewOAuthManager.Delegate
-
Field Summary
Fields Modifier and Type Field Description private WebViewOAuthManager.Delegatedelegate
-
Constructor Summary
Constructors Constructor Description WebViewOAuthManager(Activity activity, OAuthHandler oauthHandler)
-
Method Summary
Modifier and Type Method Description final WebViewOAuthManager.DelegategetDelegate()final UnitsetDelegate(WebViewOAuthManager.Delegate delegate)final UnithandleNavigation(String url, String mobileTarget)Handle navigation based on mobile target. final BooleanhandleOAuthCallback(Intent intent)Handle OAuth callback intent. -
-
Constructor Detail
-
WebViewOAuthManager
WebViewOAuthManager(Activity activity, OAuthHandler oauthHandler)
-
-
Method Detail
-
getDelegate
final WebViewOAuthManager.Delegate getDelegate()
-
setDelegate
final Unit setDelegate(WebViewOAuthManager.Delegate delegate)
-
handleNavigation
final Unit handleNavigation(String url, String mobileTarget)
Handle navigation based on mobile target.
-
handleOAuthCallback
final Boolean handleOAuthCallback(Intent intent)
Handle OAuth callback intent.
-
-
-
-