From d45b1c8f37673ccd6a66d8abe04cf2f8677386fc Mon Sep 17 00:00:00 2001
From: Ghufran Zahidi <18732053+Ghufz@users.noreply.github.com>
Date: Wed, 24 Apr 2024 16:26:56 +0530
Subject: [PATCH] made the HttpSigning method public to get the signed header.
---
.../src/main/resources/csharp/HttpSigningConfiguration.mustache | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
.../src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache
index 33791a908579..9566e1f1aed5 100644
--- a/modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache
@@ -82,7 +82,7 @@ namespace {{packageName}}.Client
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 256f338e1817..26a72daaf38f 100644
--- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 256f338e1817..26a72daaf38f 100644
--- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 256f338e1817..26a72daaf38f 100644
--- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 0685800345a1..51fbdfa548b8 100644
--- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 0685800345a1..51fbdfa548b8 100644
--- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 256f338e1817..26a72daaf38f 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 256f338e1817..26a72daaf38f 100644
--- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests
diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
index 256f338e1817..26a72daaf38f 100644
--- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
+++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs
@@ -90,7 +90,7 @@ private enum PrivateKeyType
/// Path
/// Request options
/// Http signed headers
- internal Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
+ public Dictionary GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
{
const string HEADER_REQUEST_TARGET = "(request-target)";
//The time when the HTTP signature expires. The API server should reject HTTP requests