SsoBrowser class

Opens the provider's sign-in page in the system browser and waits for it to return to redirectUri.

The system browser is used deliberately, never an in-app web view: RFC 8252 requires it, and it is what allows the browser to reuse an existing Google session without exposing the user's credentials to this app.

Because redirectUri is an HTTPS URL that the app claims (via App Links on Android and Universal Links on Apple platforms), the operating system verifies domain ownership before handing the callback over — so another app cannot intercept it.

Constructors

SsoBrowser()

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

authenticate({required String authorizationUrl, required Uri redirectUri, bool preferEphemeral = false}) → Future<Uri>
Launches authorizationUrl and returns the callback URL it lands on.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited