From 93c287bab18037e53e3e60b8b0f615aa65be1852 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Mon, 8 Apr 2019 17:17:39 +0800 Subject: [PATCH] =?UTF-8?q?identityserver4=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Shared/_Layout.cshtml | 2 +- .../Controllers/AccountController.cs | 7 +- .../Properties/launchSettings.json | 2 +- projects/StudyCenter/Startup.cs | 51 +++-- .../UserCenter/Consent/ConsentController.cs | 74 +++++++ .../UserCenter/Consent/ConsentInputModel.cs | 16 ++ projects/UserCenter/Consent/ConsentOptions.cs | 16 ++ projects/UserCenter/Consent/ConsentService.cs | 191 ++++++++++++++++++ .../UserCenter/Consent/ConsentViewModel.cs | 19 ++ .../Consent/ProcessConsentResult.cs | 18 ++ projects/UserCenter/Consent/ScopeViewModel.cs | 16 ++ projects/UserCenter/ConsentService.cs | 6 + .../Controllers/AccountController.cs | 77 +++++-- projects/UserCenter/ProfileService.cs | 19 ++ projects/UserCenter/Program.cs | 1 + projects/UserCenter/ResourceOwnerValidator.cs | 162 +++++++-------- .../UserCenter/SecurityHeadersAttribute.cs | 43 ++++ projects/UserCenter/Startup.cs | 64 +++++- .../UserCenter/Views/Consent/Index.cshtml | 82 ++++++++ .../Views/Consent/_ScopeListItem.cshtml | 34 ++++ projects/UserCenter/Views/_ViewImports.cshtml | 1 + projects/UserCenter/tempkey.rsa | 1 + 22 files changed, 773 insertions(+), 129 deletions(-) create mode 100644 projects/UserCenter/Consent/ConsentController.cs create mode 100644 projects/UserCenter/Consent/ConsentInputModel.cs create mode 100644 projects/UserCenter/Consent/ConsentOptions.cs create mode 100644 projects/UserCenter/Consent/ConsentService.cs create mode 100644 projects/UserCenter/Consent/ConsentViewModel.cs create mode 100644 projects/UserCenter/Consent/ProcessConsentResult.cs create mode 100644 projects/UserCenter/Consent/ScopeViewModel.cs create mode 100644 projects/UserCenter/ConsentService.cs create mode 100644 projects/UserCenter/ProfileService.cs create mode 100644 projects/UserCenter/SecurityHeadersAttribute.cs create mode 100644 projects/UserCenter/Views/Consent/Index.cshtml create mode 100644 projects/UserCenter/Views/Consent/_ScopeListItem.cshtml create mode 100644 projects/UserCenter/tempkey.rsa diff --git a/projects/Infrastructure/Views/Shared/_Layout.cshtml b/projects/Infrastructure/Views/Shared/_Layout.cshtml index ad0ab408..2be9db81 100644 --- a/projects/Infrastructure/Views/Shared/_Layout.cshtml +++ b/projects/Infrastructure/Views/Shared/_Layout.cshtml @@ -28,7 +28,7 @@ @Html.AntiForgeryToken()