Allow to customize OIDC discovery path#52667
Allow to customize OIDC discovery path#52667sberyozkin wants to merge 1 commit intoquarkusio:mainfrom
Conversation
...sions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonConfig.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
...idc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/config/OidcCommonConfig.java
Outdated
Show resolved
Hide resolved
|
🙈 The PR is closed and the preview is expired. |
This comment has been minimized.
This comment has been minimized.
|
Sorry I thought it was green |
If you are not careful Guillaume will knock at your doors. |
c662c23 to
4fa9a0b
Compare
|
@michalvavrik I run the |
Status for workflow
|
Status for workflow
|
| * | ||
| * @deprecated use {@link #discoveryPath()} method instead | ||
| */ | ||
| @Deprecated(forRemoval = true) |
There was a problem hiding this comment.
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.
Hi @michalvavrik Yeah, sounds like the right time
There was a problem hiding this comment.
@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
There was a problem hiding this comment.
I think you included other PR to avoid merge conflicts. No problem, I am not reviewing these parts.
michalvavrik
left a comment
There was a problem hiding this comment.
OIDC Discovery path - LGTM and makes sense!
| 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); |
There was a problem hiding this comment.
If you are going to make another push, you could apply "prependSlash" only on discoveryPath, not the constant. If not, let's keep it as is.
There was a problem hiding this comment.
@michalvavrik hey, it would not add it if the path already starts with / so I'd probably avoid another push
There was a problem hiding this comment.
@michalvavrik hey, it would not add it if the path already starts with
/so I'd probably avoid another push
cool, just please check that non-related code, because I think this PR contains changes it shouldn't. Thanks.
|
🤖 Automatically associated with the WG - OIDC improvements Working Group based on AI classification. |
|
Removing the working group association. |
Fixes #49668
With MCP Authorization highlighting that not only
.well-known/openid-configurationwell known address for finding the provider metadata is possible it is time to let users customize it.For ex, a GitHub OAuth2 provider associated with the GitHub MCP Server has its metadata available at
.well-known/oauth-authorization-server/login/oauth