Do not mix inline and non-inline delegating constructors in polymorphic types (#3197)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
parent
5de42570e2
commit
487c7ce542
@ -8,6 +8,8 @@
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
- [2741](https://github.com/Azure/azure-sdk-for-cpp/issues/2741) Fixed linking problem when Azure SDK is built as DLL.
|
||||
|
||||
### Other Changes
|
||||
|
||||
## 1.1.0 (2021-08-10)
|
||||
|
||||
@ -73,10 +73,7 @@ namespace Azure { namespace Identity {
|
||||
std::string const& tenantId,
|
||||
std::string const& clientId,
|
||||
std::string const& clientSecret,
|
||||
ClientSecretCredentialOptions const& options)
|
||||
: ClientSecretCredential(tenantId, clientId, clientSecret, options.AuthorityHost, options)
|
||||
{
|
||||
}
|
||||
ClientSecretCredentialOptions const& options);
|
||||
|
||||
/**
|
||||
* @brief Constructs a Client Secret Credential.
|
||||
@ -91,15 +88,7 @@ namespace Azure { namespace Identity {
|
||||
std::string clientId,
|
||||
std::string clientSecret,
|
||||
Core::Credentials::TokenCredentialOptions const& options
|
||||
= Core::Credentials::TokenCredentialOptions())
|
||||
: ClientSecretCredential(
|
||||
tenantId,
|
||||
clientId,
|
||||
clientSecret,
|
||||
_detail::g_aadGlobalAuthority,
|
||||
options)
|
||||
{
|
||||
}
|
||||
= Core::Credentials::TokenCredentialOptions());
|
||||
|
||||
/**
|
||||
* @brief Destructs `%ClientSecretCredential`.
|
||||
|
||||
@ -51,10 +51,7 @@ namespace Azure { namespace Identity {
|
||||
* @param options Options for token retrieval.
|
||||
*/
|
||||
explicit ManagedIdentityCredential(
|
||||
Azure::Core::Credentials::TokenCredentialOptions const& options)
|
||||
: ManagedIdentityCredential(std::string(), options)
|
||||
{
|
||||
}
|
||||
Azure::Core::Credentials::TokenCredentialOptions const& options);
|
||||
|
||||
/**
|
||||
* @brief Gets an authentication token.
|
||||
|
||||
@ -32,6 +32,29 @@ ClientSecretCredential::ClientSecretCredential(
|
||||
m_requestBody = body.str();
|
||||
}
|
||||
|
||||
ClientSecretCredential::ClientSecretCredential(
|
||||
std::string const& tenantId,
|
||||
std::string const& clientId,
|
||||
std::string const& clientSecret,
|
||||
ClientSecretCredentialOptions const& options)
|
||||
: ClientSecretCredential(tenantId, clientId, clientSecret, options.AuthorityHost, options)
|
||||
{
|
||||
}
|
||||
|
||||
ClientSecretCredential::ClientSecretCredential(
|
||||
std::string tenantId,
|
||||
std::string clientId,
|
||||
std::string clientSecret,
|
||||
Core::Credentials::TokenCredentialOptions const& options)
|
||||
: ClientSecretCredential(
|
||||
tenantId,
|
||||
clientId,
|
||||
clientSecret,
|
||||
_detail::g_aadGlobalAuthority,
|
||||
options)
|
||||
{
|
||||
}
|
||||
|
||||
ClientSecretCredential::~ClientSecretCredential() = default;
|
||||
|
||||
Azure::Core::Credentials::AccessToken ClientSecretCredential::GetToken(
|
||||
|
||||
@ -46,6 +46,12 @@ ManagedIdentityCredential::ManagedIdentityCredential(
|
||||
{
|
||||
}
|
||||
|
||||
ManagedIdentityCredential::ManagedIdentityCredential(
|
||||
Azure::Core::Credentials::TokenCredentialOptions const& options)
|
||||
: ManagedIdentityCredential(std::string(), options)
|
||||
{
|
||||
}
|
||||
|
||||
Azure::Core::Credentials::AccessToken ManagedIdentityCredential::GetToken(
|
||||
Azure::Core::Credentials::TokenRequestContext const& tokenRequestContext,
|
||||
Azure::Core::Context const& context) const
|
||||
|
||||
Loading…
Reference in New Issue
Block a user