Skip to content

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

Closed

Description

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

Activity

  1. jmprieur commented on Mar 18, 2021

    @jmprieur
    CollaboratorAuthor

    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" ]
    }
  2. jmprieur commented on Mar 18, 2021

    @jmprieur
    CollaboratorAuthor

    cc: Kalyan Krishna (@kalyankrishna1) as you were asking about this

  3. jmprieur commented on Mar 18, 2021

    @jmprieur
    CollaboratorAuthor

    Added some documentation. See Client capabilities

  4. jennyf19 commented on Apr 12, 2021

    @jennyf19
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationfixed

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions