OpenAPIOAuthFlow.authorizationCode constructor

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

Creates an authorizationCode OAuth flow.

Implementation

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