Skip to content

Commit

Permalink
Remove experimental flag on Managed Identity Claims and Capabilities …
Browse files Browse the repository at this point in the history
…APIs (#4942)

init

Co-authored-by: Gladwin Johnson <[email protected]>
  • Loading branch information
gladjohn and GladwinJohnson authored Sep 25, 2024
1 parent 501968c commit 54e1a94
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public AcquireTokenForManagedIdentityParameterBuilder WithForceRefresh(bool forc
/// <returns>The builder to chain .With methods.</returns>
public AcquireTokenForManagedIdentityParameterBuilder WithClaims(string claims)
{
ValidateUseOfExperimentalFeature("WithClaims");
CommonParameters.Claims = claims;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,11 @@ internal ManagedIdentityApplicationBuilder WithAppTokenCacheInternalForTest(ITok
/// </summary>
/// <remarks>
/// MSAL will transform these into special claims request. See https://openid.net/specs/openid-connect-core-1_0-final.html#ClaimsParameter for
/// details on claim requests. This is an experimental API. The method signature may change in the future
/// without involving a major version upgrade.
/// details on claim requests.
/// For more details see https://aka.ms/msal-net-claims-request
/// </remarks>
public ManagedIdentityApplicationBuilder WithClientCapabilities(IEnumerable<string> clientCapabilities)
{
ValidateUseOfExperimentalFeature();

if (clientCapabilities != null && clientCapabilities.Any())
{
Config.ClientCapabilities = clientCapabilities;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ private IManagedIdentityApplication CreateMIAWithProxy(string url, string userAs
builder.Config.AccessorOptions = null;

IManagedIdentityApplication mia = builder
.WithExperimentalFeatures(true)
.WithHttpManager(proxyHttpManager).Build();

return mia;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ public async Task ManagedIdentityWithClaimsAndCapabilitiesTestAsync(
SetEnvironmentVariables(managedIdentitySource, endpoint);

var miBuilder = ManagedIdentityApplicationBuilder.Create(ManagedIdentityId.SystemAssigned)
.WithExperimentalFeatures(true)
.WithClientCapabilities(TestConstants.ClientCapabilities)
.WithHttpManager(httpManager);

Expand Down

0 comments on commit 54e1a94

Please sign in to comment.