Register IJwtBearerService multiple times #189
lapofabbrini
started this conversation in
Ideas
Replies: 2 comments
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If JwtBearerService were public, it would allow me to create multiple wrappers by taking different configurations. In practice, I would have the ability to instantiate it however I like (for example, as a KeyService). Grazie |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Marco, great job on your work. I need to register IJwtBearerService multiple times in the Dependency Injection (DI) container to handle different types of tokens, such as standard access tokens and temporary tokens (e.g., for password resets or other secondary operations).
Would it be possible to:
Make the JwtBearerService implementation public?
Provide extension methods to register IJwtBearerService as a Keyed Service?
Or perhaps provide a Factory pattern to resolve different configurations?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions