<PackageReference Include="System.ClientModel" Version="1.8.1" />

System.ClientModel.Primitives.BearerTokenPolicy

A PipelinePolicy that uses an AuthenticationTokenProvider to authenticate requests.
public BearerTokenPolicy(AuthenticationTokenProvider tokenProvider, IEnumerable<IReadOnlyDictionary<string, object>> contexts)

Creates a new instance of BearerTokenPolicy.

public BearerTokenPolicy(AuthenticationTokenProvider tokenProvider, string scope)

Creates a new instance of BearerTokenPolicy.