From 8ea53827f5b23afd1f493466ffee2a1cc483e233 Mon Sep 17 00:00:00 2001 From: luoyunchong Date: Tue, 25 Aug 2020 02:48:52 +0800 Subject: [PATCH] =?UTF-8?q?#5=20#4=20=E5=A4=84=E7=90=86=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E5=92=8C=20servers=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IGeekFan.AspNetCore.Knife4jUI.sln | 10 ++ .../IGeekFan.AspNetCore.Knife4jUI.csproj | 6 +- src/IGeekFan.AspNetCore.Knife4jUI/index.html | 11 +- .../{app.b2e62e71.css => app.8efd8010.css} | 6 +- ...pp.b2e62e71.css.gz => app.8efd8010.css.gz} | Bin 86774 -> 86794 bytes ...3ea80e2.svg => editormd-logo.84b6c2a9.svg} | 0 ...6.svg => fontawesome-webfont.139e74e2.svg} | 0 ...ont.1d48c203.svg => iconfont.dd63dc33.svg} | 0 .../knife4j/js/app.765df824.js | 2 + ...ICENSE.txt => app.765df824.js.LICENSE.txt} | 0 .../knife4j/js/app.765df824.js.gz | Bin 0 -> 96684 bytes .../knife4j/js/app.ed7acb83.js | 2 - .../knife4j/js/app.ed7acb83.js.gz | Bin 94915 -> 0 bytes .../OAuth2Integration/AuthServer/Config.cs | 57 +++++++ .../Controllers/AccountController.cs | 54 +++++++ .../Controllers/ConsentController.cs | 68 +++++++++ .../AuthServer/Views/Consent.cshtml | 25 +++ .../AuthServer/Views/Login.cshtml | 23 +++ .../AuthServer/Views/_ViewImports.cshtml | 1 + .../OAuth2Integration.csproj | 17 +++ test/WebSites/OAuth2Integration/Program.cs | 26 ++++ .../Properties/launchSettings.json | 30 ++++ .../Controllers/ProductsController.cs | 58 +++++++ .../SecurityRequirementsOperationFilter.cs | 40 +++++ test/WebSites/OAuth2Integration/Startup.cs | 144 ++++++++++++++++++ .../appsettings.Development.json | 9 ++ .../OAuth2Integration/appsettings.json | 10 ++ test/WebSites/OAuth2Integration/tempkey.rsa | 1 + 28 files changed, 587 insertions(+), 13 deletions(-) rename src/IGeekFan.AspNetCore.Knife4jUI/knife4j/css/{app.b2e62e71.css => app.8efd8010.css} (98%) rename src/IGeekFan.AspNetCore.Knife4jUI/knife4j/css/{app.b2e62e71.css.gz => app.8efd8010.css.gz} (70%) rename src/IGeekFan.AspNetCore.Knife4jUI/knife4j/img/{editormd-logo.53ea80e2.svg => editormd-logo.84b6c2a9.svg} (100%) rename src/IGeekFan.AspNetCore.Knife4jUI/knife4j/img/{fontawesome-webfont.29800836.svg => fontawesome-webfont.139e74e2.svg} (100%) rename src/IGeekFan.AspNetCore.Knife4jUI/knife4j/img/{iconfont.1d48c203.svg => iconfont.dd63dc33.svg} (100%) create mode 100644 src/IGeekFan.AspNetCore.Knife4jUI/knife4j/js/app.765df824.js rename src/IGeekFan.AspNetCore.Knife4jUI/knife4j/js/{app.ed7acb83.js.LICENSE.txt => app.765df824.js.LICENSE.txt} (100%) create mode 100644 src/IGeekFan.AspNetCore.Knife4jUI/knife4j/js/app.765df824.js.gz delete mode 100644 src/IGeekFan.AspNetCore.Knife4jUI/knife4j/js/app.ed7acb83.js delete mode 100644 src/IGeekFan.AspNetCore.Knife4jUI/knife4j/js/app.ed7acb83.js.gz create mode 100644 test/WebSites/OAuth2Integration/AuthServer/Config.cs create mode 100644 test/WebSites/OAuth2Integration/AuthServer/Controllers/AccountController.cs create mode 100644 test/WebSites/OAuth2Integration/AuthServer/Controllers/ConsentController.cs create mode 100644 test/WebSites/OAuth2Integration/AuthServer/Views/Consent.cshtml create mode 100644 test/WebSites/OAuth2Integration/AuthServer/Views/Login.cshtml create mode 100644 test/WebSites/OAuth2Integration/AuthServer/Views/_ViewImports.cshtml create mode 100644 test/WebSites/OAuth2Integration/OAuth2Integration.csproj create mode 100644 test/WebSites/OAuth2Integration/Program.cs create mode 100644 test/WebSites/OAuth2Integration/Properties/launchSettings.json create mode 100644 test/WebSites/OAuth2Integration/ResourceServer/Controllers/ProductsController.cs create mode 100644 test/WebSites/OAuth2Integration/ResourceServer/Swagger/SecurityRequirementsOperationFilter.cs create mode 100644 test/WebSites/OAuth2Integration/Startup.cs create mode 100644 test/WebSites/OAuth2Integration/appsettings.Development.json create mode 100644 test/WebSites/OAuth2Integration/appsettings.json create mode 100644 test/WebSites/OAuth2Integration/tempkey.rsa diff --git a/IGeekFan.AspNetCore.Knife4jUI.sln b/IGeekFan.AspNetCore.Knife4jUI.sln index d8d78ba..2373bc4 100644 --- a/IGeekFan.AspNetCore.Knife4jUI.sln +++ b/IGeekFan.AspNetCore.Knife4jUI.sln @@ -22,6 +22,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SwaggerUI_IndexStream_Knife EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IGeekFan.AspNetCore.Knife4jUI", "src\IGeekFan.AspNetCore.Knife4jUI\IGeekFan.AspNetCore.Knife4jUI.csproj", "{6C784918-BE29-4FEF-8AC3-9D34A38DE822}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebSites", "WebSites", "{86851B6C-3504-4879-8464-1DB422D46BA0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OAuth2Integration", "test\WebSites\OAuth2Integration\OAuth2Integration.csproj", "{9E8D8F42-33F0-4F2D-9B56-1AB1B33DE1FA}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -44,6 +48,10 @@ Global {6C784918-BE29-4FEF-8AC3-9D34A38DE822}.Debug|Any CPU.Build.0 = Debug|Any CPU {6C784918-BE29-4FEF-8AC3-9D34A38DE822}.Release|Any CPU.ActiveCfg = Release|Any CPU {6C784918-BE29-4FEF-8AC3-9D34A38DE822}.Release|Any CPU.Build.0 = Release|Any CPU + {9E8D8F42-33F0-4F2D-9B56-1AB1B33DE1FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E8D8F42-33F0-4F2D-9B56-1AB1B33DE1FA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E8D8F42-33F0-4F2D-9B56-1AB1B33DE1FA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E8D8F42-33F0-4F2D-9B56-1AB1B33DE1FA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -53,6 +61,8 @@ Global {86A24FA0-E85D-4BDD-97D7-B990C50A40A9} = {75C51574-4CBD-403B-8182-8BF2A6DCFD43} {1D6FD5CA-5D58-4895-8545-A93099CE1AD4} = {C146A419-15E0-4475-9623-706C5E2DCE0B} {6C784918-BE29-4FEF-8AC3-9D34A38DE822} = {929BB2D7-C678-4BE8-8AA9-F271A2AE4545} + {86851B6C-3504-4879-8464-1DB422D46BA0} = {75C51574-4CBD-403B-8182-8BF2A6DCFD43} + {9E8D8F42-33F0-4F2D-9B56-1AB1B33DE1FA} = {86851B6C-3504-4879-8464-1DB422D46BA0} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {9D77CCB4-F597-421B-9EF9-52D4B0AC382D} diff --git a/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj b/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj index 0d3619c..8d72fd8 100644 --- a/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj +++ b/src/IGeekFan.AspNetCore.Knife4jUI/IGeekFan.AspNetCore.Knife4jUI.csproj @@ -11,14 +11,14 @@ git https://github.com/luoyunchong/IGeekFan.AspNetCore.Knife4jUI.git IGeekFan.AspNetCore.Knife4jUI - 0.0.4 + 0.0.6 igeekfan;xiaoym; true Apache License 2.0 - 0.0.4.0 - 0.0.4.0 + 0.0.6.0 + 0.0.6.0 diff --git a/src/IGeekFan.AspNetCore.Knife4jUI/index.html b/src/IGeekFan.AspNetCore.Knife4jUI/index.html index e15bbef..998b6ee 100644 --- a/src/IGeekFan.AspNetCore.Knife4jUI/index.html +++ b/src/IGeekFan.AspNetCore.Knife4jUI/index.html @@ -6,16 +6,17 @@ %(DocumentTitle) - - + + - + %(HeadContent) -
+ +
- +