From a2f26f1e8efdf9537a1bf47fc342dbab173114e9 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 17 Apr 2021 14:19:00 +0100 Subject: [PATCH] base namespace to nuget_host --- .vscode/launch.json | 1 + Controllers/AccountController.cs | 2 +- Controllers/ConsentController.cs | 2 +- Controllers/DiagnosticsController.cs | 2 +- Controllers/ExternalController.cs | 2 +- Controllers/GrantsController.cs | 2 +- Controllers/HomeController.cs | 2 +- Extensions/Extensions.cs | 2 +- Models/Account/AccountOptions.cs | 2 +- Models/Account/ExternalProvider.cs | 2 +- Models/Account/LoggedOutViewModel.cs | 2 +- Models/Account/LoginInputModel.cs | 2 +- Models/Account/LoginViewModel.cs | 2 +- Models/Account/LogoutInputModel.cs | 2 +- Models/Account/LogoutViewModel.cs | 2 +- Models/Account/RedirectViewModel.cs | 2 +- Models/Consent/ConsentInputModel.cs | 2 +- Models/Consent/ConsentOptions.cs | 2 +- Models/Consent/ConsentViewModel.cs | 2 +- Models/Consent/ParsedScopes.cs | 2 +- Models/Consent/ProcessConsentResult.cs | 2 +- Models/Consent/ScopeViewModel.cs | 2 +- Models/Consent/ValidatedResource.cs | 2 +- Models/Device/DeviceAuthorizationInputModel.cs | 2 +- Models/Device/DeviceAuthorizationViewModel.cs | 2 +- Models/Device/DeviceController.cs | 2 +- Models/Diagnostic/DiagnosticsViewModel.cs | 2 +- Models/Grants/GrantsViewModel.cs | 2 +- Models/SecurityHeadersAttribute.cs | 2 +- Models/TestUsers.cs | 2 +- Views/_ViewImports.cshtml | 2 +- 31 files changed, 31 insertions(+), 30 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index a183636..91a3414 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,6 +13,7 @@ "args": [], "cwd": "${workspaceFolder}", "stopAtEntry": false, + "requireExactSource": false, "OS-COMMENT5": "Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser", "serverReadyAction": { "action": "openExternally", diff --git a/Controllers/AccountController.cs b/Controllers/AccountController.cs index 963c9c2..a87584d 100644 --- a/Controllers/AccountController.cs +++ b/Controllers/AccountController.cs @@ -18,7 +18,7 @@ using System; using System.Linq; using System.Threading.Tasks; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { /// /// This sample controller implements a typical login/logout/provision workflow for local and external accounts. diff --git a/Controllers/ConsentController.cs b/Controllers/ConsentController.cs index 9c3954a..6e7fe1f 100644 --- a/Controllers/ConsentController.cs +++ b/Controllers/ConsentController.cs @@ -15,7 +15,7 @@ using IdentityServer4.Validation; using System.Collections.Generic; using System; using IdentityServer4.Models; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { /// /// This controller processes the consent UI diff --git a/Controllers/DiagnosticsController.cs b/Controllers/DiagnosticsController.cs index 57c2f55..99abde5 100644 --- a/Controllers/DiagnosticsController.cs +++ b/Controllers/DiagnosticsController.cs @@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { [SecurityHeaders] [Authorize] diff --git a/Controllers/ExternalController.cs b/Controllers/ExternalController.cs index 607997b..8feadea 100644 --- a/Controllers/ExternalController.cs +++ b/Controllers/ExternalController.cs @@ -15,7 +15,7 @@ using System.Linq; using System.Security.Claims; using System.Threading.Tasks; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { [SecurityHeaders] [AllowAnonymous] diff --git a/Controllers/GrantsController.cs b/Controllers/GrantsController.cs index 2431e0d..2386cf2 100644 --- a/Controllers/GrantsController.cs +++ b/Controllers/GrantsController.cs @@ -12,7 +12,7 @@ using Microsoft.AspNetCore.Authorization; using IdentityServer4.Events; using IdentityServer4.Extensions; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { /// /// This sample controller allows a user to revoke grants given to clients diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index 271fae1..4a39237 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -45,7 +45,7 @@ namespace nuget_host.Controllers public IActionResult Test() { - ViewData["Message"] = "Your contact page."; + ViewData["Message"] = "Your test page."; return Ok(ViewData); } diff --git a/Extensions/Extensions.cs b/Extensions/Extensions.cs index 6c720b7..88ad50d 100644 --- a/Extensions/Extensions.cs +++ b/Extensions/Extensions.cs @@ -2,7 +2,7 @@ using System; using IdentityServer4.Models; using Microsoft.AspNetCore.Mvc; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public static class Extensions { diff --git a/Models/Account/AccountOptions.cs b/Models/Account/AccountOptions.cs index 552f190..82fb7d0 100644 --- a/Models/Account/AccountOptions.cs +++ b/Models/Account/AccountOptions.cs @@ -4,7 +4,7 @@ using System; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class AccountOptions { diff --git a/Models/Account/ExternalProvider.cs b/Models/Account/ExternalProvider.cs index a183113..95aa096 100644 --- a/Models/Account/ExternalProvider.cs +++ b/Models/Account/ExternalProvider.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ExternalProvider { diff --git a/Models/Account/LoggedOutViewModel.cs b/Models/Account/LoggedOutViewModel.cs index 6368832..cc64929 100644 --- a/Models/Account/LoggedOutViewModel.cs +++ b/Models/Account/LoggedOutViewModel.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class LoggedOutViewModel { diff --git a/Models/Account/LoginInputModel.cs b/Models/Account/LoginInputModel.cs index bcb7853..a349d44 100644 --- a/Models/Account/LoginInputModel.cs +++ b/Models/Account/LoginInputModel.cs @@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class LoginInputModel { diff --git a/Models/Account/LoginViewModel.cs b/Models/Account/LoginViewModel.cs index 9bf6c8f..50d9396 100644 --- a/Models/Account/LoginViewModel.cs +++ b/Models/Account/LoginViewModel.cs @@ -6,7 +6,7 @@ using System; using System.Collections.Generic; using System.Linq; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class LoginViewModel : LoginInputModel { diff --git a/Models/Account/LogoutInputModel.cs b/Models/Account/LogoutInputModel.cs index bb74202..3116384 100644 --- a/Models/Account/LogoutInputModel.cs +++ b/Models/Account/LogoutInputModel.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class LogoutInputModel { diff --git a/Models/Account/LogoutViewModel.cs b/Models/Account/LogoutViewModel.cs index 236cd6c..7d82198 100644 --- a/Models/Account/LogoutViewModel.cs +++ b/Models/Account/LogoutViewModel.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class LogoutViewModel : LogoutInputModel { diff --git a/Models/Account/RedirectViewModel.cs b/Models/Account/RedirectViewModel.cs index 904ae20..772039c 100644 --- a/Models/Account/RedirectViewModel.cs +++ b/Models/Account/RedirectViewModel.cs @@ -3,7 +3,7 @@ -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class RedirectViewModel { diff --git a/Models/Consent/ConsentInputModel.cs b/Models/Consent/ConsentInputModel.cs index 2658eaa..461684b 100644 --- a/Models/Consent/ConsentInputModel.cs +++ b/Models/Consent/ConsentInputModel.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using IdentityServer4.Models; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ConsentInputModel { diff --git a/Models/Consent/ConsentOptions.cs b/Models/Consent/ConsentOptions.cs index 998c51d..bd87a1a 100644 --- a/Models/Consent/ConsentOptions.cs +++ b/Models/Consent/ConsentOptions.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ConsentOptions { diff --git a/Models/Consent/ConsentViewModel.cs b/Models/Consent/ConsentViewModel.cs index 1543f8f..3b4846a 100644 --- a/Models/Consent/ConsentViewModel.cs +++ b/Models/Consent/ConsentViewModel.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ConsentViewModel : ConsentInputModel { diff --git a/Models/Consent/ParsedScopes.cs b/Models/Consent/ParsedScopes.cs index 90f29b0..a768159 100644 --- a/Models/Consent/ParsedScopes.cs +++ b/Models/Consent/ParsedScopes.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using IdentityServer4.Models; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ParsedScopes { diff --git a/Models/Consent/ProcessConsentResult.cs b/Models/Consent/ProcessConsentResult.cs index 1d331df..5c6cd90 100644 --- a/Models/Consent/ProcessConsentResult.cs +++ b/Models/Consent/ProcessConsentResult.cs @@ -4,7 +4,7 @@ using IdentityServer4.Models; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ProcessConsentResult { diff --git a/Models/Consent/ScopeViewModel.cs b/Models/Consent/ScopeViewModel.cs index 532d1b1..d7834cb 100644 --- a/Models/Consent/ScopeViewModel.cs +++ b/Models/Consent/ScopeViewModel.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ScopeViewModel { diff --git a/Models/Consent/ValidatedResource.cs b/Models/Consent/ValidatedResource.cs index fc77281..bb2634c 100644 --- a/Models/Consent/ValidatedResource.cs +++ b/Models/Consent/ValidatedResource.cs @@ -5,7 +5,7 @@ using IdentityServer4.Models; using System.Collections.Generic; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class ValidatedResources { diff --git a/Models/Device/DeviceAuthorizationInputModel.cs b/Models/Device/DeviceAuthorizationInputModel.cs index d586bc6..9c5a6be 100644 --- a/Models/Device/DeviceAuthorizationInputModel.cs +++ b/Models/Device/DeviceAuthorizationInputModel.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class DeviceAuthorizationInputModel : ConsentInputModel diff --git a/Models/Device/DeviceAuthorizationViewModel.cs b/Models/Device/DeviceAuthorizationViewModel.cs index 3e8857f..5823e4a 100644 --- a/Models/Device/DeviceAuthorizationViewModel.cs +++ b/Models/Device/DeviceAuthorizationViewModel.cs @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class DeviceAuthorizationViewModel : ConsentViewModel { diff --git a/Models/Device/DeviceController.cs b/Models/Device/DeviceController.cs index bfb78f7..ed805d8 100644 --- a/Models/Device/DeviceController.cs +++ b/Models/Device/DeviceController.cs @@ -19,7 +19,7 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using nuget_host.OAuth; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { [Authorize] [SecurityHeaders] diff --git a/Models/Diagnostic/DiagnosticsViewModel.cs b/Models/Diagnostic/DiagnosticsViewModel.cs index f43c768..0561372 100644 --- a/Models/Diagnostic/DiagnosticsViewModel.cs +++ b/Models/Diagnostic/DiagnosticsViewModel.cs @@ -8,7 +8,7 @@ using Newtonsoft.Json; using System.Collections.Generic; using System.Text; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class DiagnosticsViewModel { diff --git a/Models/Grants/GrantsViewModel.cs b/Models/Grants/GrantsViewModel.cs index 2114dee..86952fd 100644 --- a/Models/Grants/GrantsViewModel.cs +++ b/Models/Grants/GrantsViewModel.cs @@ -5,7 +5,7 @@ using System; using System.Collections.Generic; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class GrantsViewModel { diff --git a/Models/SecurityHeadersAttribute.cs b/Models/SecurityHeadersAttribute.cs index 93ca67f..732330c 100644 --- a/Models/SecurityHeadersAttribute.cs +++ b/Models/SecurityHeadersAttribute.cs @@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class SecurityHeadersAttribute : ActionFilterAttribute { diff --git a/Models/TestUsers.cs b/Models/TestUsers.cs index 8947d19..6a6dcdc 100644 --- a/Models/TestUsers.cs +++ b/Models/TestUsers.cs @@ -9,7 +9,7 @@ using System.Security.Claims; using IdentityServer4; using Newtonsoft.Json; -namespace IdentityServerHost.Quickstart.UI +namespace nuget_host.Models { public class TestUsers { diff --git a/Views/_ViewImports.cshtml b/Views/_ViewImports.cshtml index d0a0bc1..6eab924 100644 --- a/Views/_ViewImports.cshtml +++ b/Views/_ViewImports.cshtml @@ -1,2 +1,2 @@ -@using IdentityServerHost.Quickstart.UI +@using nuget_host.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers