TokenHelper seems to be a singleton, but in fact it is tied to the client #49583
smil2k
started this conversation in
Design Discussions
Replies: 1 comment
-
Hi @smil2k, Typically, when the OIDC client filter is used, it is an internal detail. When But users do not have to use it, and can manually check the token expiry and request a token refresh. It is true it is not meant to be shared between |
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,
I'm not certain whether TokenHelper is part of the public api, but it seems that everybody started using it for all sort of things outside quarkus.
The helper was a bit confusing, because it does not hold a reference to the oidcClient (it is always passed to all of the method calls). This makes you think that this is basically a singleton and can be used for more than one client.
Why token helper does not hold a reference?
Cheers,
Tamas
Beta Was this translation helpful? Give feedback.
All reactions