-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Allow to customize OIDC discovery path #52667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -576,9 +576,8 @@ private static boolean isValidOidcClientRedirectRequest(OidcClientRedirectExcept | |
| public static Uni<JsonObject> discoverMetadata(WebClient client, | ||
| Map<OidcEndpoint.Type, List<OidcRequestFilter>> requestFilters, | ||
| OidcRequestContextProperties contextProperties, Map<OidcEndpoint.Type, List<OidcResponseFilter>> responseFilters, | ||
| String authServerUrl, | ||
| String discoveryUrl, | ||
| long connectionDelayInMillisecs, Vertx vertx, boolean blockingDnsLookup) { | ||
| final String discoveryUrl = getDiscoveryUri(authServerUrl); | ||
| final OidcRequestContextProperties requestProps = requestFilters.isEmpty() ? null | ||
| : getDiscoveryRequestProps(contextProperties, discoveryUrl); | ||
|
|
||
|
|
@@ -695,8 +694,8 @@ public static Buffer getResponseBuffer(OidcRequestContextProperties requestProps | |
| return updatedResponseBody == null ? buffer : updatedResponseBody; | ||
| } | ||
|
|
||
| public static String getDiscoveryUri(String authServerUrl) { | ||
| return authServerUrl + OidcConstants.WELL_KNOWN_CONFIGURATION; | ||
| public static String getDiscoveryUri(String authServerUrl, String discoveryPath) { | ||
| return authServerUrl + prependSlash(discoveryPath != null ? discoveryPath : OidcConstants.WELL_KNOWN_CONFIGURATION); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you are going to make another push, you could apply "prependSlash" only on
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @michalvavrik hey, it would not add it if the path already starts with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
cool, just please check that non-related code, because I think this PR contains changes it shouldn't. Thanks.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. state cookie |
||
| } | ||
|
|
||
| private static byte[] getFileContent(Path path) throws IOException { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally, I introduce them as private and thus avoid the deprecation, but that is just FYI, it makes no practical difference. IMO we should cut them soon anyway (Quarkus 4?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @michalvavrik Yeah, sounds like the right time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michalvavrik Ouch, I messed up with the squash and used the wrong base commit, I'll have to create a new commit, reverting squash did not go according to plan