OAuthFlow constructor

  1. @JsonSerializable.new(includeIfNull: false, explicitToJson: true)
const OAuthFlow({
  1. required Map<String, String> scopes,
  2. String? authorizationUrl,
  3. String? tokenUrl,
  4. String? refreshUrl,
})

Creates an OAuthFlow object.

Implementation

@JsonSerializable(includeIfNull: false, explicitToJson: true)
const factory OAuthFlow({
  /// The available scopes for the OAuth2 security scheme.
  required Map<String, String> scopes,

  /// The authorization URL to be used for this flow.
  String? authorizationUrl,

  /// The token URL to be used for this flow.
  String? tokenUrl,

  /// The URL to be used for obtaining refresh tokens.
  String? refreshUrl,
}) = _OAuthFlow;