From c5ba063edfd0b82d076b609e246a3f20abc7fcb0 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 18 Oct 2019 21:36:32 +0900 Subject: [PATCH] Move OpenId folder --- BTCPayServer/Controllers/AuthorizationController.cs | 2 +- BTCPayServer/Hosting/Startup.cs | 2 +- .../OpenId/BaseOpenIdGrantHandler.cs | 2 +- .../OpenId/ClientCredentialsGrantTypeEventHandler.cs | 2 +- .../{Authentication => Security}/OpenId/LogoutEventHandler.cs | 2 +- .../{Authentication => Security}/OpenId/OpenIdExtensions.cs | 2 +- .../OpenId/OpenIdGrantHandlerCheckCanSignIn.cs | 2 +- .../OpenId/PasswordGrantTypeEventHandler.cs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) rename BTCPayServer/{Authentication => Security}/OpenId/BaseOpenIdGrantHandler.cs (97%) rename BTCPayServer/{Authentication => Security}/OpenId/ClientCredentialsGrantTypeEventHandler.cs (98%) rename BTCPayServer/{Authentication => Security}/OpenId/LogoutEventHandler.cs (96%) rename BTCPayServer/{Authentication => Security}/OpenId/OpenIdExtensions.cs (99%) rename BTCPayServer/{Authentication => Security}/OpenId/OpenIdGrantHandlerCheckCanSignIn.cs (98%) rename BTCPayServer/{Authentication => Security}/OpenId/PasswordGrantTypeEventHandler.cs (98%) diff --git a/BTCPayServer/Controllers/AuthorizationController.cs b/BTCPayServer/Controllers/AuthorizationController.cs index 3b2aab612..73adc68da 100644 --- a/BTCPayServer/Controllers/AuthorizationController.cs +++ b/BTCPayServer/Controllers/AuthorizationController.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Immutable; using System.Linq; using System.Threading.Tasks; -using BTCPayServer.Authentication.OpenId; +using BTCPayServer.Security.OpenId; using BTCPayServer.Data; using BTCPayServer.Models; using BTCPayServer.Models.Authorization; diff --git a/BTCPayServer/Hosting/Startup.cs b/BTCPayServer/Hosting/Startup.cs index 7b5b7f981..dec0bf3c0 100644 --- a/BTCPayServer/Hosting/Startup.cs +++ b/BTCPayServer/Hosting/Startup.cs @@ -25,7 +25,7 @@ using Microsoft.AspNetCore.Server.Kestrel.Core; using OpenIddict.EntityFrameworkCore.Models; using System.Net; using BTCPayServer.Authentication; -using BTCPayServer.Authentication.OpenId; +using BTCPayServer.Security.OpenId; using BTCPayServer.PaymentRequest; using BTCPayServer.Services.Apps; using BTCPayServer.Storage; diff --git a/BTCPayServer/Authentication/OpenId/BaseOpenIdGrantHandler.cs b/BTCPayServer/Security/OpenId/BaseOpenIdGrantHandler.cs similarity index 97% rename from BTCPayServer/Authentication/OpenId/BaseOpenIdGrantHandler.cs rename to BTCPayServer/Security/OpenId/BaseOpenIdGrantHandler.cs index d138fa9f7..1dfc4a071 100644 --- a/BTCPayServer/Authentication/OpenId/BaseOpenIdGrantHandler.cs +++ b/BTCPayServer/Security/OpenId/BaseOpenIdGrantHandler.cs @@ -9,7 +9,7 @@ using OpenIddict.Core; using OpenIddict.Server; using System.Security.Claims; -namespace BTCPayServer.Authentication.OpenId +namespace BTCPayServer.Security.OpenId { public abstract class BaseOpenIdGrantHandler : IOpenIddictServerHandler diff --git a/BTCPayServer/Authentication/OpenId/ClientCredentialsGrantTypeEventHandler.cs b/BTCPayServer/Security/OpenId/ClientCredentialsGrantTypeEventHandler.cs similarity index 98% rename from BTCPayServer/Authentication/OpenId/ClientCredentialsGrantTypeEventHandler.cs rename to BTCPayServer/Security/OpenId/ClientCredentialsGrantTypeEventHandler.cs index 9d9b87abf..71f00aeae 100644 --- a/BTCPayServer/Authentication/OpenId/ClientCredentialsGrantTypeEventHandler.cs +++ b/BTCPayServer/Security/OpenId/ClientCredentialsGrantTypeEventHandler.cs @@ -10,7 +10,7 @@ using OpenIddict.Core; using OpenIddict.EntityFrameworkCore.Models; using OpenIddict.Server; -namespace BTCPayServer.Authentication.OpenId +namespace BTCPayServer.Security.OpenId { public class ClientCredentialsGrantTypeEventHandler : BaseOpenIdGrantHandler diff --git a/BTCPayServer/Authentication/OpenId/LogoutEventHandler.cs b/BTCPayServer/Security/OpenId/LogoutEventHandler.cs similarity index 96% rename from BTCPayServer/Authentication/OpenId/LogoutEventHandler.cs rename to BTCPayServer/Security/OpenId/LogoutEventHandler.cs index 35ce4d4ca..58d3d419f 100644 --- a/BTCPayServer/Authentication/OpenId/LogoutEventHandler.cs +++ b/BTCPayServer/Security/OpenId/LogoutEventHandler.cs @@ -12,7 +12,7 @@ using OpenIddict.Server; using Microsoft.AspNetCore; using OpenIddict.Server.AspNetCore; -namespace BTCPayServer.Authentication.OpenId +namespace BTCPayServer.Security.OpenId { public class LogoutEventHandler : IOpenIddictServerHandler { diff --git a/BTCPayServer/Authentication/OpenId/OpenIdExtensions.cs b/BTCPayServer/Security/OpenId/OpenIdExtensions.cs similarity index 99% rename from BTCPayServer/Authentication/OpenId/OpenIdExtensions.cs rename to BTCPayServer/Security/OpenId/OpenIdExtensions.cs index 25655e619..e696facbc 100644 --- a/BTCPayServer/Authentication/OpenId/OpenIdExtensions.cs +++ b/BTCPayServer/Security/OpenId/OpenIdExtensions.cs @@ -13,7 +13,7 @@ using OpenIddict.Core; using OpenIddict.Server; using static BTCPayServer.Authentication.RestAPIPolicies; -namespace BTCPayServer.Authentication.OpenId +namespace BTCPayServer.Security.OpenId { public static class OpenIdExtensions { diff --git a/BTCPayServer/Authentication/OpenId/OpenIdGrantHandlerCheckCanSignIn.cs b/BTCPayServer/Security/OpenId/OpenIdGrantHandlerCheckCanSignIn.cs similarity index 98% rename from BTCPayServer/Authentication/OpenId/OpenIdGrantHandlerCheckCanSignIn.cs rename to BTCPayServer/Security/OpenId/OpenIdGrantHandlerCheckCanSignIn.cs index e2cfc1b78..cf502bc66 100644 --- a/BTCPayServer/Authentication/OpenId/OpenIdGrantHandlerCheckCanSignIn.cs +++ b/BTCPayServer/Security/OpenId/OpenIdGrantHandlerCheckCanSignIn.cs @@ -11,7 +11,7 @@ using Microsoft.AspNetCore; using Microsoft.AspNetCore.Authentication.OpenIdConnect; using OpenIddict.Server.AspNetCore; -namespace BTCPayServer.Authentication.OpenId +namespace BTCPayServer.Security.OpenId { public class OpenIdGrantHandlerCheckCanSignIn : BaseOpenIdGrantHandler diff --git a/BTCPayServer/Authentication/OpenId/PasswordGrantTypeEventHandler.cs b/BTCPayServer/Security/OpenId/PasswordGrantTypeEventHandler.cs similarity index 98% rename from BTCPayServer/Authentication/OpenId/PasswordGrantTypeEventHandler.cs rename to BTCPayServer/Security/OpenId/PasswordGrantTypeEventHandler.cs index 002a3cd08..597e2924c 100644 --- a/BTCPayServer/Authentication/OpenId/PasswordGrantTypeEventHandler.cs +++ b/BTCPayServer/Security/OpenId/PasswordGrantTypeEventHandler.cs @@ -10,7 +10,7 @@ using OpenIddict.Core; using OpenIddict.Server; using Microsoft.AspNetCore; -namespace BTCPayServer.Authentication.OpenId +namespace BTCPayServer.Security.OpenId { public class PasswordGrantTypeEventHandler : BaseOpenIdGrantHandler {