Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Expose WithClientCapabilities in TokenAcquisitionOptions to declare the client supports CAE / AuthenticationContext #1071

Closed
jmprieur opened this issue Mar 16, 2021 · 4 comments
Labels
documentation Improvements or additions to documentation fixed
Milestone

Comments

@jmprieur
Copy link
Collaborator

jmprieur commented Mar 16, 2021

Is your feature request related to a problem? Please describe.
Clients (web apps or web APIs calling web APIs) need to support CAE and AuthenticationContext

Describe the solution you'd like
For this we'd want to expose ClientCapabilities in TokenAcquisitionOptions

See also
https://docs.microsoft.com/azure/active-directory/develop/app-resilience-continuous-access-evaluation

@jmprieur jmprieur added enhancement New feature or request fixed labels Mar 16, 2021
@jmprieur
Copy link
Collaborator Author

This is actually possible because ApplicationOptions expose the ClientCapabilities property
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/7f9974cc0525d308e091dbf380ef6d8c75aad8d9/src/client/Microsoft.Identity.Client/AppConfig/ApplicationOptions.cs#L123

so the way to use client capabilities would be, in the appsettings.json to set

"AzureAD" : 
{
 // usual members
 "ClientCapabilities" : [  "cp1" ]
}

@jmprieur
Copy link
Collaborator Author

cc: @kalyankrishna1 as you were asking about this

@jmprieur
Copy link
Collaborator Author

Added some documentation. See Client capabilities

@jmprieur jmprieur added this to the 1.9.0 milestone Mar 18, 2021
@jmprieur jmprieur added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Mar 18, 2021
@jmprieur jmprieur reopened this Mar 18, 2021
@jennyf19
Copy link
Collaborator

Included in 1.9.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation fixed
Projects
None yet
Development

No branches or pull requests

2 participants