Skip to content

Using IdWeb token acquisition on ASP.NET Core 2.x on net472 or net48 lacks implementation of ITokenAquirerFactory  #2849

@jmprieur

Description

@jmprieur

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

2.17.0

Web app

Not Applicable

Web API

Not Applicable

Token cache serialization

Not Applicable

Description

on ASP.NET Core 2.x on net472 or net48 customers can add token acquisition as a singleton, but the implementation of ITokenAcquireFactory is missing

Reproduction steps

In Startup.cs:

services.AddTokenAcquisition(true);

In controller:

  IDownstreamApi d = HttpContext.RequestServices.GetService(typeof(IDownstreamApi)) as IDownstreamApi;

Error message

provokes: missing implementation for ITokenAcquireFactory

Id Web logs

No response

Relevant code snippets

See above

Regression

No regression

Expected behavior

The ITokenAcquirerFactory shouldn't be missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions