io.quarkus.oidc.token.propagation.reactive.OidcTokenPropagationReactiveConfigRelocateInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-rest-client-oidc-token-propagation Show documentation
Show all versions of quarkus-rest-client-oidc-token-propagation Show documentation
Use REST Client to propagate the incoming Bearer access token or token acquired from Authorization Code Flow as HTTP Authorization Bearer token
package io.quarkus.oidc.token.propagation.reactive;
import java.util.function.Function;
import io.quarkus.runtime.util.StringUtil;
import io.smallrye.config.RelocateConfigSourceInterceptor;
/**
* @deprecated maps the old config to the new config, should be removed at some point
*/
@Deprecated(forRemoval = true, since = "3.9")
public class OidcTokenPropagationReactiveConfigRelocateInterceptor extends RelocateConfigSourceInterceptor {
private static final String OLD_PREFIX = "quarkus.oidc-token-propagation.";
private static final String NEW_PREFIX = "quarkus.rest-client-oidc-token-propagation.";
private static final Function RENAME_FUNCTION = new Function() {
@Override
public String apply(String s) {
return StringUtil.changePrefix(s, OLD_PREFIX, NEW_PREFIX);
}
};
public OidcTokenPropagationReactiveConfigRelocateInterceptor() {
super(RENAME_FUNCTION);
}
}