-
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 #40600 from sberyozkin/oidc_redirect_filter
Introduce OidcRedirectFilter
- Loading branch information
Showing
12 changed files
with
330 additions
and
29 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
30 changes: 30 additions & 0 deletions
30
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcRedirectFilter.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,30 @@ | ||
package io.quarkus.oidc; | ||
|
||
import io.vertx.core.MultiMap; | ||
import io.vertx.ext.web.RoutingContext; | ||
|
||
/** | ||
* OIDC redirect filter which can be used to customize redirect requests to OIDC authorization and logout endpoints | ||
* as well as local redirects to OIDC tenant error, session expired and other pages. | ||
*/ | ||
public interface OidcRedirectFilter { | ||
|
||
/** | ||
* OIDC redirect context which provides access to the routing context, current OIDC tenant configuration, redirect uri | ||
* and additional query parameters. | ||
* The additional query parameters are visible to all OIDC redirect filters. They are URL-encoded and added to | ||
* the redirect URI after all the filters have run. | ||
*/ | ||
record OidcRedirectContext(RoutingContext routingContext, OidcTenantConfig oidcTenantConfig, | ||
String redirectUri, MultiMap additionalQueryParams) { | ||
} | ||
|
||
/** | ||
* Filter OIDC redirect. | ||
* | ||
* @param redirectContext the redirect context which provides access to the routing context, current OIDC tenant | ||
* configuration, redirect uri and additional query parameters. | ||
* | ||
*/ | ||
void filter(OidcRedirectContext redirectContext); | ||
} |
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
Oops, something went wrong.