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

View File

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

View File

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

View File

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