Skip to content

Commit

Permalink
Add flag in SecretClientOption and SecretClient
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanCrd committed Sep 17, 2024
1 parent 36643e2 commit 02a805d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public SecretClient(Uri vaultUri, TokenCredential credential, SecretClientOption
string apiVersion = options.GetVersionString();

HttpPipeline pipeline = HttpPipelineBuilder.Build(options,
new ChallengeBasedAuthenticationPolicy(credential, options.DisableChallengeResourceVerification));
new ChallengeBasedAuthenticationPolicy(credential, options.DisableChallengeResourceVerification, options.enableCAE));

_pipeline = new KeyVaultPipeline(vaultUri, apiVersion, pipeline, new ClientDiagnostics(options));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ public SecretClientOptions(ServiceVersion version = LatestVersion)
/// </summary>
public bool DisableChallengeResourceVerification { get; set; }

/// <summary>
/// Enable Continuous Access Evaluation (CAE) for the client.
/// </summary>
public bool enableCAE { get; set; } = false;

internal string GetVersionString()
{
return Version switch
Expand Down

0 comments on commit 02a805d

Please sign in to comment.