-
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.
- Loading branch information
1 parent
77cf0a8
commit 5028da3
Showing
12 changed files
with
331 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
31 changes: 31 additions & 0 deletions
31
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,31 @@ | ||
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 | ||
* configurationthe redirect uri which filters may update by adding additional query parameters, | ||
* 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
Oops, something went wrong.