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

OwinTokenAcquirerFactory mangles OwinTokenAcquisitionHost scope #3215

Open
Danthar opened this issue Jan 23, 2025 · 0 comments
Open

OwinTokenAcquirerFactory mangles OwinTokenAcquisitionHost scope #3215

Danthar opened this issue Jan 23, 2025 · 0 comments
Labels

Comments

@Danthar
Copy link

Danthar commented Jan 23, 2025

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

3.6.0

Web app

Sign-in users and call web APIs

Web API

Protected web APIs call downstream web APIs

Token cache serialization

In-memory caches

Description

if (tokenAcquisitionhost.Lifetime == ServiceLifetime.Singleton)

This looks like a bug. Im unsure what it should be, i think it should always be scoped and not singleton. But im pretty sure that this is not correct.

To be clear the link refers to a single line. but im saying the entire if statement is wrong.

Reproduction steps

Look at the code

Error message

No response

Id Web logs

No response

Relevant code snippets

follow the link

Regression

No response

Expected behavior

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

No branches or pull requests

2 participants