Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
namespace cleanup/refactor in host (to support templates) (#4439)
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed May 26, 2020
1 parent 6d18e30 commit 803d9f0
Show file tree
Hide file tree
Showing 40 changed files with 34 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


using IdentityModel;
using IdentityServer4;
using IdentityServer4.Events;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
Expand All @@ -17,7 +18,7 @@
using System.Linq;
using System.Threading.Tasks;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
/// <summary>
/// This sample controller implements a typical login/logout/provision workflow for local and external accounts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class AccountOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using IdentityModel;
using IdentityServer4;
using IdentityServer4.Events;
using IdentityServer4.Services;
using IdentityServer4.Stores;
Expand All @@ -14,7 +15,7 @@
using System.Security.Claims;
using System.Threading.Tasks;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
[SecurityHeaders]
[AllowAnonymous]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class ExternalProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class LoggedOutViewModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.ComponentModel.DataAnnotations;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class LoginInputModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Collections.Generic;
using System.Linq;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class LoginViewModel : LoginInputModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class LogoutInputModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class LogoutViewModel : LogoutInputModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@



namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class RedirectViewModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using System.Collections.Generic;
using System;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
/// <summary>
/// This controller processes the consent UI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Collections.Generic;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class ConsentInputModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class ConsentOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Collections.Generic;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class ConsentViewModel : ConsentInputModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using IdentityServer4.Models;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class ProcessConsentResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class ScopeViewModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI.Device
namespace Host.Quickstart.UI
{
public class DeviceAuthorizationInputModel : ConsentInputModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


namespace IdentityServer4.Quickstart.UI.Device
namespace Host.Quickstart.UI
{
public class DeviceAuthorizationViewModel : ConsentViewModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace IdentityServer4.Quickstart.UI.Device
namespace Host.Quickstart.UI.Device
{
[Authorize]
[SecurityHeaders]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
[SecurityHeaders]
[Authorize]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Collections.Generic;
using System.Text;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class DiagnosticsViewModel
{
Expand Down
2 changes: 1 addition & 1 deletion src/IdentityServer4/host/Quickstart/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using IdentityServer4.Models;
using Microsoft.AspNetCore.Mvc;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public static class Extensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using IdentityServer4.Events;
using IdentityServer4.Extensions;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
/// <summary>
/// This sample controller allows a user to revoke grants given to clients
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Collections.Generic;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class GrantsViewModel
{
Expand Down
2 changes: 1 addition & 1 deletion src/IdentityServer4/host/Quickstart/Home/ErrorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using IdentityServer4.Models;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class ErrorViewModel
{
Expand Down
2 changes: 1 addition & 1 deletion src/IdentityServer4/host/Quickstart/Home/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
[SecurityHeaders]
[AllowAnonymous]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class SecurityHeadersAttribute : ActionFilterAttribute
{
Expand Down
2 changes: 1 addition & 1 deletion src/IdentityServer4/host/Quickstart/TestUsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Collections.Generic;
using System.Security.Claims;

namespace IdentityServer4.Quickstart.UI
namespace Host.Quickstart.UI
{
public class TestUsers
{
Expand Down
2 changes: 1 addition & 1 deletion src/IdentityServer4/host/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Host.Configuration;
using IdentityModel;
using IdentityServer4;
using IdentityServer4.Quickstart.UI;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand All @@ -21,6 +20,7 @@
using Host.Extensions;
using Microsoft.AspNetCore.Authentication.Certificate;
using Microsoft.AspNetCore.HttpOverrides;
using Host.Quickstart.UI;

namespace Host
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model IdentityServer4.Quickstart.UI.Device.DeviceAuthorizationViewModel
@model DeviceAuthorizationViewModel

<div class="page-device-confirmation">
<div class="lead">
Expand Down
2 changes: 1 addition & 1 deletion src/IdentityServer4/host/Views/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@using IdentityServer4.Quickstart.UI
@using Host.Quickstart.UI
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using Microsoft.Extensions.Logging;
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;

namespace Microsoft.AspNetCore.Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using System;
using IdentityServer4.Extensions;
using IdentityServer4.Configuration;
using System.Collections.Generic;

namespace IdentityServer4.Endpoints.Results
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class DefaultJwtRequestUriHttpClient : IJwtRequestUriHttpClient
/// ctor
/// </summary>
/// <param name="client">An HTTP client</param>
/// <param name="options">The options.</param>
/// <param name="loggerFactory">The logger factory</param>
public DefaultJwtRequestUriHttpClient(HttpClient client, IdentityServerOptions options, ILoggerFactory loggerFactory)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using IdentityModel;
using IdentityServer4.Configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using IdentityModel;
using System.Linq;
using System;
using System.Linq.Expressions;

namespace IdentityServer4.Validation
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


using System.Threading.Tasks;
using FluentAssertions;
using IdentityServer.UnitTests.Common;
using IdentityServer4.Endpoints;
using IdentityServer4.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Xunit;

namespace IdentityServer.UnitTests.Endpoints.EndSession
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentAssertions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using IdentityServer4.Configuration;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
using IdentityServer4.Stores;
using IdentityServer4.Validation;
using Xunit;

Expand Down

0 comments on commit 803d9f0

Please sign in to comment.