Skip to content

Return registration_endpoint in OidcProviderConfigurationEndpointFilter #371

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

Closed
wants to merge 1 commit into from

Conversation

bibibiu2017
Copy link
Contributor

Fixes gh-370

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 24, 2021
Copy link
Collaborator

@jgrandja jgrandja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the enhancement @bibibiu2017. Please see review comments.

Also, can you please rebase on top of main. I noticed you performed a merge instead. Please rebase your changes on top of current main.

@jgrandja jgrandja self-assigned this Jul 28, 2021
@jgrandja jgrandja added status: duplicate A duplicate of another issue type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 28, 2021
@jgrandja jgrandja changed the title Added Registration URL to OIDC Configuration Metadata Endpoint Return registration_endpoint in OidcProviderConfigurationEndpointFilter Jul 28, 2021
@jgrandja jgrandja added this to the 0.2.0 milestone Jul 28, 2021
@bibibiu2017 bibibiu2017 force-pushed the main branch 2 times, most recently from 96b9600 to f0cb790 Compare July 28, 2021 14:54
Copy link
Collaborator

@jgrandja jgrandja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @bibibiu2017 . Please see review comments.

After you apply the remaining updates please squash commits and format commit message.

* @see <a target="_blank" href="https://tools.ietf.org/html/rfc8414#section-3.2">3.2. Authorization Server Metadata Response</a>
* @see <a target="_blank" href="https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfigurationResponse">4.2. OpenID Provider Configuration Response</a>
* @since 0.1.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move @since below @author - the same order as in all classes

@@ -105,6 +107,16 @@ public B tokenEndpoint(String tokenEndpoint) {
return claim(OAuth2AuthorizationServerMetadataClaimNames.TOKEN_ENDPOINT, tokenEndpoint);
}

/**
* Add this registration endpoint in the resulting {@link OidcProviderConfiguration} OPTIONAL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OidcProviderConfiguration should not be referenced

* @param registrationEndpoint the supported registration client url
* @return the {@link OidcProviderConfiguration.Builder} for further configuration
*/
public B clientRegistrationEndpoint(String registrationEndpoint) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename argument -> clientRegistrationEndpoint

@@ -299,7 +311,7 @@ public B codeChallengeMethods(Consumer<List<String>> codeChallengeMethodsConsume
/**
* Use this claim in the resulting {@link AbstractOAuth2AuthorizationServerMetadata}.
*
* @param name the claim name
* @param name the claim name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace added?

@@ -41,6 +42,11 @@
*/
String TOKEN_ENDPOINT = "token_endpoint";

/**
* {@code registration_endpoint} - the {@code URL} of the OpenID Connect Discovery 1.0 Client Registration Endpoint
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

javadoc is incorrect -> "OpenID Connect Discovery 1.0"

@bibibiu2017 bibibiu2017 force-pushed the main branch 2 times, most recently from 21c468c to 252894b Compare July 29, 2021 19:12
@bibibiu2017
Copy link
Contributor Author

Hi @jgrandja thanks for the feedback, I have made the recommended changes and squashed all the commits

…ration but the client registration url was not included in open id Configuration metadata. This has been added by this commit.

closes spring-projectsgh-370
@jgrandja
Copy link
Collaborator

@bibibiu2017 Based on the updates in gh-398, more changes are required in this PR.

OidcProviderConfigurationEndpointFilter should return the registration_endpoint only if OidcClientRegistrationEndpointFilter is enabled. The default is disabled based on gh-398.

I'm going to push this out for the 0.2.1 release.

@jgrandja jgrandja modified the milestones: 0.2.0, 0.2.1 Aug 17, 2021
@jgrandja jgrandja removed this from the 0.2.1 milestone Oct 25, 2021
@jgrandja
Copy link
Collaborator

jgrandja commented Jan 6, 2022

@bibibiu2017 I'm going to close this PR as the requested changes have not been applied. If you have time please submit a new PR with the requested changes and rebase on latest main. Thanks.

@jgrandja jgrandja closed this Jan 6, 2022
@jgrandja jgrandja added status: declined A suggestion or change that we don't feel we should currently apply and removed status: duplicate A duplicate of another issue labels Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return registration_endpoint in OidcProviderConfigurationEndpointFilter
3 participants