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

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

Closed
jmprieur opened this issue May 21, 2024 · 0 comments · Fixed by #2852
Milestone

Comments

@jmprieur
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants