UaePassKitWeb class
A web implementation of UaePassKitPlatform.
UAE Pass documents a materially different flow for web apps (a plain
full-page OAuth2 redirect against a real, reachable redirect_uri —
see docs.uaepass.ae/feature-guides/authentication/web-application)
than for mobile (the WebView-interception app-to-app dance this
package's UaePassKit.signIn implements). There is no native app to
detect on web, so this always reports false; web integrators should
drive the standard redirect flow directly using
UaePassEnvironment.endpoints and UaePassKit's token/profile calls,
which work unchanged on any platform.
- Inheritance
-
- Object
- PlatformInterface
- UaePassKitPlatform
- UaePassKitWeb
Constructors
- UaePassKitWeb()
- Constructs a UaePassKitWeb.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isUaePassAppInstalled(
{required String androidPackageId, required String iosUrlScheme}) → Future< bool> -
Returns whether the native UAE Pass app is installed on this device.
override
-
nativeSignIn(
{required String state, required Uri authorizeUrl}) → Future< String?> -
Runs the whole UAE Pass sign-in hand-off natively — presenting the
login UI, switching to the native UAE Pass app when installed, and
resuming via the platform's own deep-link mechanism — and returns the
resulting authorization code.
inherited
-
nativeSignOut(
) → Future< void> -
Clears cookies held by native code's own WebView, as part of
UaePassKit.logout.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openSigningUrl(
{required String url, required Uri finishUri}) → Future< String?> -
Opens
url(a UAE Pass e-signature UI URL) natively, applying the same app-switch/deep-link mechanics as nativeSignIn, until either the flow reaches a URL matchingfinishUri(compared by scheme, host and path) or the resulting URL carries astatusquery parameter — matching UAE Pass's own documented signing-completion signal.inherited -
setUpEnvironment(
{required String clientId, String? clientSecret, required bool isProduction, required String appCallbackScheme, required String uaePassScheme, required Uri redirectUri, required String scope, required String language}) → Future< void> -
Pushes this flow's configuration to native code, ahead of
nativeSignIn or openSigningUrl.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void - Registers this implementation as the platform instance for web.