-
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.
Merge pull request #36915 from sberyozkin/rename_oidc_client_request_…
…filter_filter Rename OidcClientRequestFilter filter to OidcRequestFilter
- Loading branch information
Showing
12 changed files
with
72 additions
and
51 deletions.
There are no files selected for viewing
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
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
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
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
17 changes: 0 additions & 17 deletions
17
...ons/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/OidcClientRequestFilter.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...idc-common/runtime/src/main/java/io/quarkus/oidc/common/OidcRequestContextProperties.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,16 @@ | ||
package io.quarkus.oidc.common; | ||
|
||
import java.util.Map; | ||
|
||
public class OidcRequestContextProperties { | ||
|
||
private final Map<String, Object> properties; | ||
|
||
public OidcRequestContextProperties(Map<String, Object> properties) { | ||
this.properties = properties; | ||
} | ||
|
||
public Object getProperty(String name) { | ||
return properties.get(name); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/OidcRequestFilter.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,19 @@ | ||
package io.quarkus.oidc.common; | ||
|
||
import io.vertx.mutiny.core.buffer.Buffer; | ||
import io.vertx.mutiny.ext.web.client.HttpRequest; | ||
|
||
/** | ||
* Request filter which can be used to customize requests such as the verification JsonWebKey set and token grant requests | ||
* which are made from the OIDC adapter to the OIDC provider | ||
*/ | ||
public interface OidcRequestFilter { | ||
/** | ||
* Filter OIDC requests | ||
* | ||
* @param request HTTP request that can have its headers customized | ||
* @param body request body, will be null for HTTP GET methods, may be null for other HTTP methods | ||
* @param contextProperties context properties that can be available in context of some requests, can be null | ||
*/ | ||
void filter(HttpRequest<Buffer> request, Buffer requestBody, OidcRequestContextProperties contextProperties); | ||
} |
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
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
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
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
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