Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ protected virtual HttpRequestMessage CreateRequestMessage(Uri address, Stream co

if (this.CredentialEnvelope != null)
{
// TODO: NEED TO USE CACHING HERE
var authToken = this.CredentialEnvelope.GetToken();

if (authToken == default(AuthToken))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ public void Dispose()
/// </summary>
/// <remarks>
/// AN EXPLANATION OF THE STATUS CODES:
/// - <see cref="ResponseStatusCodes.BadRequest"/>
/// "HTTP/1.1 400 Incorrect API was used - v2 API does not support authentication".
/// This indicates that the AI resource was configured for AAD, but SDK was not.
/// This is a configuration issue and is not recoverable from the client side.
/// IMPORTANT: We ignore this error and allow telemetry to be dropped.
/// Ingestion also uses HTTP 400 for invalid JSON and is indistinguishable from AAD errors.
/// - <see cref="ResponseStatusCodes.Unauthorized"/>
/// "HTTP/1.1 401 Unauthorized - please provide the valid authorization token".
/// This indicates that the authorization token was either absent, invalid, or expired.
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Changelog

## VNext


## Version 2.18.0-beta3
- [Enable the self diagnostics and fix a NullReferenceException bug](https://github.com/microsoft/ApplicationInsights-dotnet/pull/2302)
- AAD Breaking change: [CredentialEnvelope.GetToken() now returns type AuthToken instead of string. This is to expose the Expiration value with the token.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/2306)

## Version 2.18.0-beta2
- Reduce technical debt: Use pattern matching
Expand Down