base namespace to nuget_host
This commit is contained in:
parent
1b2d850522
commit
a2f26f1e8e
31 changed files with 31 additions and 30 deletions
1
.vscode/launch.json
vendored
1
.vscode/launch.json
vendored
|
|
@ -13,6 +13,7 @@
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"stopAtEntry": false,
|
"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",
|
"OS-COMMENT5": "Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser",
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"action": "openExternally",
|
"action": "openExternally",
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This sample controller implements a typical login/logout/provision workflow for local and external accounts.
|
/// This sample controller implements a typical login/logout/provision workflow for local and external accounts.
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ using IdentityServer4.Validation;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System;
|
using System;
|
||||||
using IdentityServer4.Models;
|
using IdentityServer4.Models;
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This controller processes the consent UI
|
/// This controller processes the consent UI
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Authentication;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
[SecurityHeaders]
|
[SecurityHeaders]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ using System.Linq;
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
[SecurityHeaders]
|
[SecurityHeaders]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||||
using IdentityServer4.Events;
|
using IdentityServer4.Events;
|
||||||
using IdentityServer4.Extensions;
|
using IdentityServer4.Extensions;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This sample controller allows a user to revoke grants given to clients
|
/// This sample controller allows a user to revoke grants given to clients
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ namespace nuget_host.Controllers
|
||||||
|
|
||||||
public IActionResult Test()
|
public IActionResult Test()
|
||||||
{
|
{
|
||||||
ViewData["Message"] = "Your contact page.";
|
ViewData["Message"] = "Your test page.";
|
||||||
|
|
||||||
return Ok(ViewData);
|
return Ok(ViewData);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System;
|
||||||
using IdentityServer4.Models;
|
using IdentityServer4.Models;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public static class Extensions
|
public static class Extensions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class AccountOptions
|
public class AccountOptions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class ExternalProvider
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class LoggedOutViewModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class LoginInputModel
|
public class LoginInputModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class LoginViewModel : LoginInputModel
|
public class LoginViewModel : LoginInputModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class LogoutInputModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class LogoutViewModel : LogoutInputModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class RedirectViewModel
|
public class RedirectViewModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using IdentityServer4.Models;
|
using IdentityServer4.Models;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class ConsentInputModel
|
public class ConsentInputModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class ConsentOptions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class ConsentViewModel : ConsentInputModel
|
public class ConsentViewModel : ConsentInputModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using IdentityServer4.Models;
|
using IdentityServer4.Models;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class ParsedScopes
|
public class ParsedScopes
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
using IdentityServer4.Models;
|
using IdentityServer4.Models;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class ProcessConsentResult
|
public class ProcessConsentResult
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class ScopeViewModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
using IdentityServer4.Models;
|
using IdentityServer4.Models;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class ValidatedResources
|
public class ValidatedResources
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class DeviceAuthorizationInputModel : ConsentInputModel
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
// 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
|
public class DeviceAuthorizationViewModel : ConsentViewModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using nuget_host.OAuth;
|
using nuget_host.OAuth;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[SecurityHeaders]
|
[SecurityHeaders]
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ using Newtonsoft.Json;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class DiagnosticsViewModel
|
public class DiagnosticsViewModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class GrantsViewModel
|
public class GrantsViewModel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.Filters;
|
using Microsoft.AspNetCore.Mvc.Filters;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class SecurityHeadersAttribute : ActionFilterAttribute
|
public class SecurityHeadersAttribute : ActionFilterAttribute
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using System.Security.Claims;
|
||||||
using IdentityServer4;
|
using IdentityServer4;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace IdentityServerHost.Quickstart.UI
|
namespace nuget_host.Models
|
||||||
{
|
{
|
||||||
public class TestUsers
|
public class TestUsers
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
@using IdentityServerHost.Quickstart.UI
|
@using nuget_host.Models
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue