Skip to content

Commit a5d463d

Browse files
wing328Ghufz
andauthored
made the HttpSigning method public to get the signed header. (OpenAPITools#18496)
Co-authored-by: Ghufran Zahidi <[email protected]>
1 parent a00549c commit a5d463d

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace {{packageName}}.Client
8282
/// <param name="path">Path</param>
8383
/// <param name="requestOptions">Request options</param>
8484
/// <returns>Http signed headers</returns>
85-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
85+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
8686
{
8787
const string HEADER_REQUEST_TARGET = "(request-target)";
8888
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private enum PrivateKeyType
9090
/// <param name="path">Path</param>
9191
/// <param name="requestOptions">Request options</param>
9292
/// <returns>Http signed headers</returns>
93-
internal Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
93+
public Dictionary<string, string> GetHttpSignedHeader(string basePath,string method, string path, RequestOptions requestOptions)
9494
{
9595
const string HEADER_REQUEST_TARGET = "(request-target)";
9696
//The time when the HTTP signature expires. The API server should reject HTTP requests

0 commit comments

Comments
 (0)