Config class
Configuration of an OAuth client, including identifiers and URLs needed to connect to a running server instance.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
Config({Provider provider = Provider.ftauth, required Uri gatewayUri, required String clientId, String? clientSecret, ClientType clientType = ClientType.public, List<
String> scopes = const [], required Uri redirectUri, List<String> ? grantTypes, TokenFormat accessTokenFormat = TokenFormat.jwt, TokenFormat refreshTokenFormat = TokenFormat.jwt, Uri? authorizationUri, Uri? tokenUri, Uri? userInfoUri}) -
Config.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accessTokenFormat → TokenFormat
-
final
-
no setter
- clientId → String
-
final
- clientSecret → String?
-
final
- clientType → ClientType
-
final
- gatewayUri → Uri
-
final
-
grantTypes
→ List<
String> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- provider → Provider
-
final
- redirectUri → Uri
-
final
- refreshTokenFormat → TokenFormat
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<
String> -
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - tokenUri → Uri
-
no setter
- userInfoUri → Uri
-
no setter
Methods
-
copyWith(
{Provider? provider, Uri? gatewayUri, Uri? authorizationUri, Uri? tokenUri, Uri? userInfoUri, Uri? redirectUri, String? clientId, String? clientSecret, ClientType? clientType, List< String> ? scopes, List<String> ? grantTypes, TokenFormat? accessTokenFormat, TokenFormat? refreshTokenFormat}) → Config -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited