forked from loafle/openapi-generator-original
fix issue without http signature auth (#7504)
This commit is contained in:
parent
bc799b2488
commit
5ebf26e0d2
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user