OpenAPIOAuthFlow.clientCredentials constructor

OpenAPIOAuthFlow.clientCredentials({
  1. required String tokenUrl,
  2. required Map<String, String> scopes,
  3. String? refreshUrl,
  4. Map<String, Object?>? extensions,
})

Creates a clientCredentials OAuth flow.

Implementation

factory OpenAPIOAuthFlow.clientCredentials({
  required String tokenUrl,
  required Map<String, String> scopes,
  String? refreshUrl,
  Map<String, Object?>? extensions,
}) => OpenAPIOAuthFlow._({
  'tokenUrl': tokenUrl,
  'scopes': Map<String, String>.unmodifiable(scopes),
  'refreshUrl': ?refreshUrl,
  ...?prefixExtensions(extensions),
});