This repository has been archived by the owner on Feb 12, 2025. It is now read-only.
Releases: Azure/go-autorest
Releases · Azure/go-autorest
v11.2.1
NOTE: Versions of Go prior to 1.10 have been removed from CI as they no
longer work with golint.
Bug Fixes
- Method
MSIConfig.Authorizer
now supports user-assigned identities. - The adal package now reports its own user-agent string.
v11.2.0
New Features
- Added
tracing
package that enables instrumentation of HTTP and API calls.
Setting the env variableAZURE_SDK_TRACING_ENABELD
or callingtracing.Enable
will start instrumenting the code for metrics and traces.
Additionally, setting the env variableOCAGENT_TRACE_EXPORTER_ENDPOINT
or
callingtracing.EnableWithAIForwarding
will start the instrumentation and connect to an
App Insights Local Forwarder that is needs to be running. Note that if the
AI Local Forwarder is not running tracking will still be enabled.
By default, instrumentation is disabled. Once enabled, instrumentation can also
be programatically disabled by callingDisable
. - Added
DoneWithContext
call for checking LRO status.Done
has been deprecated.
Bug Fixes
- Don't use the initial request's context for LRO polling.
- Don't override the
refreshLock
and thehttp.Client
when unmarshallingServicePrincipalToken
if
it is already set.
v11.1.1
Bug Fixes
- When creating a future always include the polling tracker even if there's a failure; this allows the underlying response to be obtained by the caller.
v11.1.0
New Features
- Added
auth.NewAuthorizerFromCLI
to create an authorizer configured from the Azure 2.0 CLI. - Added
adal.NewOAuthConfigWithAPIVersion
to create an OAuthConfig with the specified API version.
v11.0.1
New Features
- Added
x5c
header to client assertion for certificate Issuer+Subject Name authentication.
v11.0.0
Breaking Changes
- To handle differences between ADFS and AAD the following fields have had their types changed from
string
tojson.Number
- ExpiresIn
- ExpiresOn
- NotBefore
New Features
- Added
auth.NewAuthorizerFromFileWithResource
to create an authorizer from the config file with the specified resource. - Setting a client's
PollingDuration
to zero will use the provided context to control a LRO's polling duration.
v10.15.5
Bug Fixes
- In
DoRetryForStatusCodes
, if a request's context is cancelled return the last response.
v10.15.4
Bug Fixes
- If a polling operation returns a failure status code return the associated error.
v10.15.3
Bug Fixes
- Initialize the polling URL and method for an LRO tracker on each iteration, favoring the Azure-AsyncOperation header.
v10.15.2
Bug Fixes
- Use fmt.Fprint when printing request/response so that any escape sequences aren't treated as format specifiers.