From 34cd2e1392124c5673a5ec3c54f46965d22bd58d Mon Sep 17 00:00:00 2001 From: TomPallister Date: Tue, 4 Jul 2017 19:18:08 +0100 Subject: [PATCH] moved classes into seperate files --- .../File/FileAuthenticationOptions.cs | 15 --------------- .../File/FileIdentityServerConfig.cs | 10 ++++++++++ src/Ocelot/Configuration/File/FileJwtConfig.cs | 9 +++++++++ 3 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 src/Ocelot/Configuration/File/FileIdentityServerConfig.cs create mode 100644 src/Ocelot/Configuration/File/FileJwtConfig.cs diff --git a/src/Ocelot/Configuration/File/FileAuthenticationOptions.cs b/src/Ocelot/Configuration/File/FileAuthenticationOptions.cs index 31be2307..6333993d 100644 --- a/src/Ocelot/Configuration/File/FileAuthenticationOptions.cs +++ b/src/Ocelot/Configuration/File/FileAuthenticationOptions.cs @@ -16,19 +16,4 @@ namespace Ocelot.Configuration.File public FileIdentityServerConfig IdentityServerConfig { get; set; } public FileJwtConfig JwtConfig { get; set; } } - - public class FileIdentityServerConfig - { - public string ProviderRootUrl { get; set; } - public string ApiName { get; set; } - public bool RequireHttps { get; set; } - public string ApiSecret { get; set; } - } - - public class FileJwtConfig - { - public string Authority { get; set; } - - public string Audience { get; set; } - } } diff --git a/src/Ocelot/Configuration/File/FileIdentityServerConfig.cs b/src/Ocelot/Configuration/File/FileIdentityServerConfig.cs new file mode 100644 index 00000000..dfc023b2 --- /dev/null +++ b/src/Ocelot/Configuration/File/FileIdentityServerConfig.cs @@ -0,0 +1,10 @@ +namespace Ocelot.Configuration.File +{ + public class FileIdentityServerConfig + { + public string ProviderRootUrl { get; set; } + public string ApiName { get; set; } + public bool RequireHttps { get; set; } + public string ApiSecret { get; set; } + } +} \ No newline at end of file diff --git a/src/Ocelot/Configuration/File/FileJwtConfig.cs b/src/Ocelot/Configuration/File/FileJwtConfig.cs new file mode 100644 index 00000000..a24522fc --- /dev/null +++ b/src/Ocelot/Configuration/File/FileJwtConfig.cs @@ -0,0 +1,9 @@ +namespace Ocelot.Configuration.File +{ + public class FileJwtConfig + { + public string Authority { get; set; } + + public string Audience { get; set; } + } +} \ No newline at end of file