feat(server,web): migrate oauth settings from env to system config (#1061)

This commit is contained in:
Jason Rasmussen
2022-12-09 15:51:42 -05:00
committed by GitHub
parent cefdd86b7f
commit 5e680551b9
69 changed files with 2079 additions and 1229 deletions

View File

@@ -17,12 +17,17 @@ void main() {
// final instance = SystemConfigApi();
group('tests for SystemConfigApi', () {
//Future<SystemConfigResponseDto> getConfig() async
//Future<SystemConfigDto> getConfig() async
test('test getConfig', () async {
// TODO
});
//Future<SystemConfigResponseDto> updateConfig(Object body) async
//Future<SystemConfigDto> getDefaults() async
test('test getDefaults', () async {
// TODO
});
//Future<SystemConfigDto> updateConfig(SystemConfigDto systemConfigDto) async
test('test updateConfig', () async {
// TODO
});

View File

@@ -11,13 +11,18 @@
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SystemConfigResponseDto
// tests for SystemConfigDto
void main() {
// final instance = SystemConfigResponseDto();
// final instance = SystemConfigDto();
group('test SystemConfigResponseDto', () {
// List<SystemConfigResponseItem> config (default value: const [])
test('to test the property `config`', () async {
group('test SystemConfigDto', () {
// SystemConfigFFmpegDto ffmpeg
test('to test the property `ffmpeg`', () async {
// TODO
});
// SystemConfigOAuthDto oauth
test('to test the property `oauth`', () async {
// TODO
});

View File

@@ -0,0 +1,47 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SystemConfigFFmpegDto
void main() {
// final instance = SystemConfigFFmpegDto();
group('test SystemConfigFFmpegDto', () {
// String crf
test('to test the property `crf`', () async {
// TODO
});
// String preset
test('to test the property `preset`', () async {
// TODO
});
// String targetVideoCodec
test('to test the property `targetVideoCodec`', () async {
// TODO
});
// String targetAudioCodec
test('to test the property `targetAudioCodec`', () async {
// TODO
});
// String targetScaling
test('to test the property `targetScaling`', () async {
// TODO
});
});
}

View File

@@ -1,21 +0,0 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SystemConfigKey
void main() {
group('test SystemConfigKey', () {
});
}

View File

@@ -0,0 +1,57 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SystemConfigOAuthDto
void main() {
// final instance = SystemConfigOAuthDto();
group('test SystemConfigOAuthDto', () {
// bool enabled
test('to test the property `enabled`', () async {
// TODO
});
// String issuerUrl
test('to test the property `issuerUrl`', () async {
// TODO
});
// String clientId
test('to test the property `clientId`', () async {
// TODO
});
// String clientSecret
test('to test the property `clientSecret`', () async {
// TODO
});
// String scope
test('to test the property `scope`', () async {
// TODO
});
// String buttonText
test('to test the property `buttonText`', () async {
// TODO
});
// bool autoRegister
test('to test the property `autoRegister`', () async {
// TODO
});
});
}

View File

@@ -1,42 +0,0 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SystemConfigResponseItem
void main() {
// final instance = SystemConfigResponseItem();
group('test SystemConfigResponseItem', () {
// String name
test('to test the property `name`', () async {
// TODO
});
// SystemConfigKey key
test('to test the property `key`', () async {
// TODO
});
// String value
test('to test the property `value`', () async {
// TODO
});
// String defaultValue
test('to test the property `defaultValue`', () async {
// TODO
});
});
}