ExternalAuthOptions class

A common class containing parsing and validation logic for third-party authentication configuration.

Constructors

ExternalAuthOptions({required String clientId, required String clientSecret, required dynamic redirectUri, Iterable<String> scopes = const []})
factory
ExternalAuthOptions.fromMap(Map<String, dynamic> map)
Returns a JSON-friendly representation of this object.
factory

Properties

clientId String
The user's identifier, otherwise known as an "application id".
final
clientSecret String
The user's secret, other known as an "application secret".
final
hashCode int
The hash code for this object.
no setteroverride
redirectUri Uri
The user's redirect URI.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes Set<String>
The scopes to be passed to the external server.
final

Methods

copyWith({String? clientId, String? clientSecret, dynamic redirectUri, Iterable<String> scopes = const []}) ExternalAuthOptions
Creates a copy of this object, with the specified changes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool obscureSecret = true}) Map<String, dynamic>
Returns a JSON-friendly representation of this object.
toString({bool obscureSecret = true, int? asteriskCount}) String
Returns a String representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override