Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use MemoryDistributedCache only for PostConfigureOAuth2IntrospectionOptions IoC #172

Open
aramirezh-dev opened this issue Mar 9, 2023 · 3 comments

Comments

@aramirezh-dev
Copy link

Question: Is it possible to change the IoC for IDistributedCache to use MemoryDistributedCache only for PostConfigureOAuth2IntrospectionOptions? I have a lot of issues with redis connection

@renagaev
Copy link

renagaev commented Apr 5, 2023

@leastprivilege
Hi, I'm looking to add the ability to choose an IDistributedCache implementation, like using in-memory for introspection and redis for the other app. I don't want to store plain user data in redis for security reasons.

I can pass in my cache implementation to the OAuth2IntrospectionHandler by registering it via Func<IServiceProvider, OAuth2IntrospectionHandler> which call contructor directly. Unfortunately, this trick doesn't work for the PostConfigureOAuth2IntrospectionOptions, as it's an internal class.

I can create PR if you help me pick right approach for implementing this.

@renagaev
Copy link

@leastprivilege @brockallen up

@kooshan
Copy link

kooshan commented Apr 17, 2024

I have similar problem. Would you please address this?
@leastprivilege @brockallen

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

3 participants