Skip to content

Commit b146d37

Browse files
authored
Merge pull request #864 from microsoftgraph/andureastman/enableCAE
Changes to enable CAE by default.
2 parents a6b5ace + 1287bc8 commit b146d37

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v
77

88
## [Unreleased]
99

10+
## [3.1.15] - 2024-08-09
11+
12+
### Changed
13+
14+
- Updates the Kiota dependencies to the latest version
15+
- Enabled Continuous Access evaluation by default.
16+
1017
## [3.1.14] - 2024-07-23
1118

1219
### Changed

src/Microsoft.Graph.Core/Authentication/AzureIdentityAccessTokenProvider.cs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using Azure.Core;
66
using Microsoft.Kiota.Abstractions.Authentication;
7+
using System;
78
using System.Linq;
89

910
namespace Microsoft.Graph.Authentication;
@@ -12,10 +13,17 @@ namespace Microsoft.Graph.Authentication;
1213
/// An overload of the Access Token Provider that has the defaults for Microsoft Graph.
1314
/// </summary>
1415
public class AzureIdentityAccessTokenProvider : Microsoft.Kiota.Authentication.Azure.AzureIdentityAccessTokenProvider {
15-
/// <inheritdoc/>
16-
public AzureIdentityAccessTokenProvider(TokenCredential credential, string [] allowedHosts = null, Microsoft.Kiota.Authentication.Azure.ObservabilityOptions observabilityOptions = null, params string[] scopes)
17-
: base(credential, allowedHosts, observabilityOptions, scopes) {
18-
if(!allowedHosts?.Any() ?? true)
16+
/// <inheritdoc/>
17+
public AzureIdentityAccessTokenProvider(TokenCredential credential, string [] allowedHosts = null, Microsoft.Kiota.Authentication.Azure.ObservabilityOptions observabilityOptions = null, bool isCaeEnabled = true, params string[] scopes)
18+
: base(credential, allowedHosts, observabilityOptions, isCaeEnabled, scopes) {
19+
if(!allowedHosts?.Any() ?? true)
1920
AllowedHostsValidator = new AllowedHostsValidator(new string[] { "graph.microsoft.com", "graph.microsoft.us", "dod-graph.microsoft.us", "graph.microsoft.de", "microsoftgraph.chinacloudapi.cn", "canary.graph.microsoft.com", "graph.microsoft-ppe.com" });
2021
}
22+
23+
/// <inheritdoc/>
24+
[Obsolete("This constructor is obsolete and will be removed in a future version. Use the constructor that takes an isCaeEnabled parameter instead.")]
25+
public AzureIdentityAccessTokenProvider(TokenCredential credential, string[] allowedHosts = null, Microsoft.Kiota.Authentication.Azure.ObservabilityOptions observabilityOptions = null, params string[] scopes)
26+
: this(credential, allowedHosts, observabilityOptions, true, scopes)
27+
{
28+
}
2129
}

src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
2222
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
2323
<!-- x-release-please-start-version -->
24-
<VersionPrefix>3.1.14</VersionPrefix>
24+
<VersionPrefix>3.1.15</VersionPrefix>
2525
<!-- x-release-please-end -->
2626
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
2727
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
@@ -64,13 +64,13 @@
6464
<ItemGroup>
6565
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.0.1" />
6666
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
67-
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.10.1" />
68-
<PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.10.1" />
69-
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.10.1" />
70-
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.10.1" />
71-
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.10.1" />
72-
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.10.1" />
73-
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.9.11" />
67+
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.11.0" />
68+
<PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.11.0" />
69+
<PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.11.0" />
70+
<PackageReference Include="Microsoft.Kiota.Serialization.Text" Version="1.11.0" />
71+
<PackageReference Include="Microsoft.Kiota.Serialization.Form" Version="1.11.0" />
72+
<PackageReference Include="Microsoft.Kiota.Http.HttpClientLibrary" Version="1.11.0" />
73+
<PackageReference Include="Microsoft.Kiota.Serialization.Multipart" Version="1.11.0" />
7474
</ItemGroup>
7575
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
7676
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="[6.0,9.0)" />

0 commit comments

Comments
 (0)