-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add relocate interceptor for each fallback interceptor
- Loading branch information
Showing
14 changed files
with
189 additions
and
7 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...java/io/quarkus/oidc/client/filter/runtime/OidcClientFilterConfigRelocateInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.oidc.client.filter.runtime; | ||
|
||
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 OidcClientFilterConfigRelocateInterceptor extends RelocateConfigSourceInterceptor { | ||
|
||
private static final String OLD_PREFIX = "quarkus.oidc-client-filter."; | ||
private static final String NEW_PREFIX = "quarkus.resteasy-client-oidc-filter."; | ||
|
||
public OidcClientFilterConfigRelocateInterceptor() { | ||
super(OidcClientFilterConfigRelocateInterceptor::rename); | ||
} | ||
|
||
private static String rename(String originalName) { | ||
if (!originalName.startsWith(OLD_PREFIX)) { | ||
return originalName; | ||
} | ||
|
||
return originalName.replaceFirst(OLD_PREFIX, NEW_PREFIX); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...r/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
io.quarkus.oidc.client.filter.runtime.OidcClientFilterConfigFallbackInterceptor | ||
io.quarkus.oidc.client.filter.runtime.OidcClientFilterConfigFallbackInterceptor | ||
io.quarkus.oidc.client.filter.runtime.OidcClientFilterConfigRelocateInterceptor |
25 changes: 25 additions & 0 deletions
25
...idc/client/reactive/filter/runtime/OidcClientReactiveFilterConfigRelocateInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.oidc.client.reactive.filter.runtime; | ||
|
||
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 OidcClientReactiveFilterConfigRelocateInterceptor extends RelocateConfigSourceInterceptor { | ||
|
||
private static final String OLD_PREFIX = "quarkus.oidc-client-reactive-filter."; | ||
private static final String NEW_PREFIX = "quarkus.rest-client-oidc-filter."; | ||
|
||
public OidcClientReactiveFilterConfigRelocateInterceptor() { | ||
super(OidcClientReactiveFilterConfigRelocateInterceptor::rename); | ||
} | ||
|
||
private static String rename(String originalName) { | ||
if (!originalName.startsWith(OLD_PREFIX)) { | ||
return originalName; | ||
} | ||
|
||
return originalName.replaceFirst(OLD_PREFIX, NEW_PREFIX); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...r/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
io.quarkus.oidc.client.reactive.filter.runtime.OidcClientReactiveFilterConfigFallbackInterceptor | ||
io.quarkus.oidc.client.reactive.filter.runtime.OidcClientReactiveFilterConfigFallbackInterceptor | ||
io.quarkus.oidc.client.reactive.filter.runtime.OidcClientReactiveFilterConfigRelocateInterceptor |
25 changes: 25 additions & 0 deletions
25
...idc/token/propagation/reactive/OidcTokenPropagationReactiveConfigRelocateInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.oidc.token.propagation.reactive; | ||
|
||
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."; | ||
|
||
public OidcTokenPropagationReactiveConfigRelocateInterceptor() { | ||
super(OidcTokenPropagationReactiveConfigRelocateInterceptor::rename); | ||
} | ||
|
||
private static String rename(String originalName) { | ||
if (!originalName.startsWith(OLD_PREFIX)) { | ||
return originalName; | ||
} | ||
|
||
return originalName.replaceFirst(OLD_PREFIX, NEW_PREFIX); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...e/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
io.quarkus.oidc.token.propagation.reactive.OidcTokenPropagationReactiveConfigFallbackInterceptor | ||
io.quarkus.oidc.token.propagation.reactive.OidcTokenPropagationReactiveConfigFallbackInterceptor | ||
io.quarkus.oidc.token.propagation.reactive.OidcTokenPropagationReactiveConfigRelocateInterceptor |
25 changes: 25 additions & 0 deletions
25
...quarkus/oidc/token/propagation/runtime/OidcTokenPropagationConfigRelocateInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.oidc.token.propagation.runtime; | ||
|
||
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 OidcTokenPropagationConfigRelocateInterceptor extends RelocateConfigSourceInterceptor { | ||
|
||
private static final String OLD_PREFIX = "quarkus.oidc-token-propagation."; | ||
private static final String NEW_PREFIX = "quarkus.resteasy-client-oidc-token-propagation."; | ||
|
||
public OidcTokenPropagationConfigRelocateInterceptor() { | ||
super(OidcTokenPropagationConfigRelocateInterceptor::rename); | ||
} | ||
|
||
private static String rename(String originalName) { | ||
if (!originalName.startsWith(OLD_PREFIX)) { | ||
return originalName; | ||
} | ||
|
||
return originalName.replaceFirst(OLD_PREFIX, NEW_PREFIX); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...n/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
io.quarkus.oidc.token.propagation.runtime.OidcTokenPropagationConfigFallbackInterceptor | ||
io.quarkus.oidc.token.propagation.runtime.OidcTokenPropagationConfigFallbackInterceptor | ||
io.quarkus.oidc.token.propagation.runtime.OidcTokenPropagationConfigRelocateInterceptor |
25 changes: 25 additions & 0 deletions
25
.../io/quarkus/rest/client/reactive/runtime/RestClientReactiveConfigRelocateInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.rest.client.reactive.runtime; | ||
|
||
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 RestClientReactiveConfigRelocateInterceptor extends RelocateConfigSourceInterceptor { | ||
|
||
private static final String OLD_PREFIX = "quarkus.rest-client-reactive."; | ||
private static final String NEW_PREFIX = "quarkus.rest-client."; | ||
|
||
public RestClientReactiveConfigRelocateInterceptor() { | ||
super(RestClientReactiveConfigRelocateInterceptor::rename); | ||
} | ||
|
||
private static String rename(String originalName) { | ||
if (!originalName.startsWith(OLD_PREFIX)) { | ||
return originalName; | ||
} | ||
|
||
return originalName.replaceFirst(OLD_PREFIX, NEW_PREFIX); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...t/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
io.quarkus.rest.client.reactive.runtime.RestClientReactiveConfigFallbackInterceptor | ||
io.quarkus.rest.client.reactive.runtime.RestClientReactiveConfigFallbackInterceptor | ||
io.quarkus.rest.client.reactive.runtime.RestClientReactiveConfigRelocateInterceptor |
25 changes: 25 additions & 0 deletions
25
...o/quarkus/resteasy/reactive/common/runtime/ResteasyReactiveConfigRelocateInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.resteasy.reactive.common.runtime; | ||
|
||
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 ResteasyReactiveConfigRelocateInterceptor extends RelocateConfigSourceInterceptor { | ||
|
||
private static final String OLD_PREFIX = "quarkus.resteasy-reactive."; | ||
private static final String NEW_PREFIX = "quarkus.rest."; | ||
|
||
public ResteasyReactiveConfigRelocateInterceptor() { | ||
super(ResteasyReactiveConfigRelocateInterceptor::rename); | ||
} | ||
|
||
private static String rename(String originalName) { | ||
if (!originalName.startsWith(OLD_PREFIX)) { | ||
return originalName; | ||
} | ||
|
||
return originalName.replaceFirst(OLD_PREFIX, NEW_PREFIX); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...n/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
io.quarkus.resteasy.reactive.common.runtime.ResteasyReactiveConfigFallbackInterceptor | ||
io.quarkus.resteasy.reactive.common.runtime.ResteasyReactiveConfigFallbackInterceptor | ||
io.quarkus.resteasy.reactive.common.runtime.ResteasyReactiveConfigRelocateInterceptor |
25 changes: 25 additions & 0 deletions
25
...src/main/java/io/quarkus/csrf/reactive/runtime/CsrfReactiveConfigRelocateInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.quarkus.csrf.reactive.runtime; | ||
|
||
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 CsrfReactiveConfigRelocateInterceptor extends RelocateConfigSourceInterceptor { | ||
|
||
private static final String OLD_PREFIX = "quarkus.csrf-reactive."; | ||
private static final String NEW_PREFIX = "quarkus.rest-csrf."; | ||
|
||
public CsrfReactiveConfigRelocateInterceptor() { | ||
super(CsrfReactiveConfigRelocateInterceptor::rename); | ||
} | ||
|
||
private static String rename(String originalName) { | ||
if (!originalName.startsWith(OLD_PREFIX)) { | ||
return originalName; | ||
} | ||
|
||
return originalName.replaceFirst(OLD_PREFIX, NEW_PREFIX); | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...f/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
io.quarkus.csrf.reactive.runtime.CsrfReactiveConfigFallbackInterceptor | ||
io.quarkus.csrf.reactive.runtime.CsrfReactiveConfigFallbackInterceptor | ||
io.quarkus.csrf.reactive.runtime.CsrfReactiveConfigRelocateInterceptor |