fix issue without http signature auth (#7504)

This commit is contained in:
William Cheng 2020-09-24 23:56:50 +08:00 committed by GitHub
parent bc799b2488
commit 5ebf26e0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View File

@ -92,11 +92,13 @@ namespace {{packageName}}.Client
/// <value>The servers</value> /// <value>The servers</value>
private IList<IReadOnlyDictionary<string, object>> _servers; private IList<IReadOnlyDictionary<string, object>> _servers;
{{/servers.0}} {{/servers.0}}
{{#hasHttpSignatureMethods}}
/// <summary> /// <summary>
/// HTTPSigning configuration /// HTTPSigning configuration
/// </summary> /// </summary>
private HTTPSigningConfiguration _HTTPSigningConfiguration = null; private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
{{/hasHttpSignatureMethods}}
#endregion Private Members #endregion Private Members
#region Constructors #region Constructors
@ -467,6 +469,7 @@ namespace {{packageName}}.Client
return url; return url;
} }
{{/servers.0}} {{/servers.0}}
{{#hasHttpSignatureMethods}}
/// <summary> /// <summary>
/// Gets and Sets the HTTPSigningConfiuration /// Gets and Sets the HTTPSigningConfiuration
@ -476,6 +479,7 @@ namespace {{packageName}}.Client
get { return _HTTPSigningConfiguration; } get { return _HTTPSigningConfiguration; }
set { _HTTPSigningConfiguration = value; } set { _HTTPSigningConfiguration = value; }
} }
{{/hasHttpSignatureMethods}}
#endregion Properties #endregion Properties
@ -553,9 +557,11 @@ namespace {{packageName}}.Client
Username = second.Username ?? first.Username, Username = second.Username ?? first.Username,
Password = second.Password ?? first.Password, Password = second.Password ?? first.Password,
AccessToken = second.AccessToken ?? first.AccessToken, AccessToken = second.AccessToken ?? first.AccessToken,
{{#hasHttpSignatureMethods}}
HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration,
{{/hasHttpSignatureMethods}}
TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath,
DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat
HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration
}; };
return config; return config;
} }

View File

@ -96,10 +96,12 @@ namespace {{packageName}}.Client
/// </summary> /// </summary>
/// <value>X509 Certificate collection.</value> /// <value>X509 Certificate collection.</value>
X509CertificateCollection ClientCertificates { get; } X509CertificateCollection ClientCertificates { get; }
{{#hasHttpSignatureMethods}}
/// <summary> /// <summary>
/// Gets the HTTPSigning configuration /// Gets the HTTPSigning configuration
/// </summary> /// </summary>
HTTPSigningConfiguration HTTPSigningConfiguration { get; } HTTPSigningConfiguration HTTPSigningConfiguration { get; }
{{/hasHttpSignatureMethods}}
} }
} }

View File

@ -560,9 +560,9 @@ namespace Org.OpenAPITools.Client
Username = second.Username ?? first.Username, Username = second.Username ?? first.Username,
Password = second.Password ?? first.Password, Password = second.Password ?? first.Password,
AccessToken = second.AccessToken ?? first.AccessToken, AccessToken = second.AccessToken ?? first.AccessToken,
HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration,
TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath,
DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat
HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration
}; };
return config; return config;
} }

View File

@ -566,9 +566,9 @@ namespace Org.OpenAPITools.Client
Username = second.Username ?? first.Username, Username = second.Username ?? first.Username,
Password = second.Password ?? first.Password, Password = second.Password ?? first.Password,
AccessToken = second.AccessToken ?? first.AccessToken, AccessToken = second.AccessToken ?? first.AccessToken,
HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration,
TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath,
DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat
HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration
}; };
return config; return config;
} }