You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currenty impossible to create a custom OidcClientFilter which extends the abstract filters provided by OIDC Client reactive and classic extensions and use this client, while it would be great to do something like:
@Priority(Priorities.AUTHENTICATION)
public class OidcClientRequestCustomFilter extends AbstractOidcClientRequestReactiveFilter {
@Inject
OidcClientCreator oidcClientCreator;
@Override
protected Optional<OidcClient> client() {
return Optional.of(oidcClientCreator.getOidcClient());
}
}
and let the OIDC filter deal with the token acquisition and refresh.
Implementation ideas
I've been thinking for a while if I should simply update OidcClients to record the newly created OidcClient and I've come to the conclusion it should be avoided, for now at least, as OidcClients would need to deal with the even if theoretical OOM if the number of dynamic clients grows, while trimming some of them would mean that sometimes the above filter code works and sometimes not.
So a short term, simple solution is let custom filter implementations provide an already initialized OidcClient if they have it
The text was updated successfully, but these errors were encountered:
Description
Lets say an OidcClient created like this:
It is currenty impossible to create a custom OidcClientFilter which extends the abstract filters provided by OIDC Client reactive and classic extensions and use this client, while it would be great to do something like:
and let the OIDC filter deal with the token acquisition and refresh.
Implementation ideas
I've been thinking for a while if I should simply update
OidcClients
to record the newly created OidcClient and I've come to the conclusion it should be avoided, for now at least, asOidcClients
would need to deal with the even if theoretical OOM if the number of dynamic clients grows, while trimming some of them would mean that sometimes the above filter code works and sometimes not.So a short term, simple solution is let custom filter implementations provide an already initialized OidcClient if they have it
The text was updated successfully, but these errors were encountered: