diff --git a/WorkFlowCore/WorkFlowCore.Framework/Authorization/DefaultCustomizationVerifyExtension.cs b/WorkFlowCore/WorkFlowCore.Framework/Authorization/DefaultCustomizationVerifyExtension.cs index f6894d37b482a6d45d18d9dd9dcea1e49c89b109..738c7e69c3b0f78cba57c03c1c7386d9cef05064 100644 --- a/WorkFlowCore/WorkFlowCore.Framework/Authorization/DefaultCustomizationVerifyExtension.cs +++ b/WorkFlowCore/WorkFlowCore.Framework/Authorization/DefaultCustomizationVerifyExtension.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; @@ -32,6 +32,15 @@ namespace WorkFlowCore.Framework.Authorization var tokenFrom = configureContext.Parameters.GetOrDefault("token-from")?? "headers"; var tokenKey = configureContext.Parameters.GetOrDefault("token-key")?? "authorization"; var tokenFormat = configureContext.Parameters.GetOrDefault("token-format") ?? "Bearer {token}"; + var isThirdPart = input.Context.Request.Headers.GetOrDefault("token-part").ToString() ?? ""; + + if (isThirdPart != "ThirdPart") + { + return new VerifyOutput + { + IsValid = false, + }; + } var token = string.Empty; if("headers"==tokenFrom)