You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an application level API for managed identity:
var mi = ManagedIdentityApplicationBuilder // This class will also have token cache behavior
.Create() // Or .Create("user-assigned-managed-identity-guid")
.Build();
AuthenticationResult result = await mi.AcquireTokenForManagedIdentity(scopes) // This is the only method of this new class
.ExecuteAsync().ConfigureAwait(false);
neha-bhargava
changed the title
Implement the API proposal 5 from API review doc and change the tests - 2 weeks + 2 weeks as buffer for surprises
Implement the API proposal 5 from API review doc
Feb 22, 2023
Will this from the spec be implemented? I guess not?
When using a normal confidential client federated by Managed Identity, there are several sub-options here.
varcca= ConfidentialClientApplicationBuilder().Create(clientId)// The normal CCA's client id.WithManagedIdentity()// Or .WithManagedIdentity("user-assigned-managed-identity-guid")
...// Other modifiers needed by a normal CCA, such as WithAuthority(...).Build();varresult1=await cca.AcquireTokenForClient("https://graph.microsoft.com/.default")// Same as a normal CCA.ExecuteAsync().ConfigureAwait(false);// It will create and call ManagedIdentityApplication object internally
Add an application level API for managed identity:
Ref: https://identitydivision.visualstudio.com/DevEx/_git/AuthLibrariesApiReview/pullrequest/7003?_a=files&path=/ManagedIdentity/ManagedIdentity.md
The text was updated successfully, but these errors were encountered: