-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Implement OpenID Provider Configuration endpoint #143
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
Conversation
00bec01
to
2dccbf7
Compare
08f3104
to
5389abe
Compare
8c93524
to
cd31229
Compare
I have introduced I have introduced it in a separate commit but can squash it if you prefer. |
8fa9d0f
to
ff869f6
Compare
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.
Thanks for the PR @Kehrlann. Please see review comments.
...pringframework/security/oauth2/server/authorization/web/OidcProviderConfigurationFilter.java
Outdated
Show resolved
Hide resolved
...n/java/org/springframework/security/oauth2/core/oidc/endpoint/OidcProviderConfiguration.java
Outdated
Show resolved
Hide resolved
.../main/java/org/springframework/security/oauth2/core/oidc/OidcProviderMetadataClaimNames.java
Outdated
Show resolved
Hide resolved
...in/java/org/springframework/security/oauth2/core/oidc/OidcProviderMetadataClaimAccessor.java
Outdated
Show resolved
Hide resolved
.../main/java/org/springframework/security/oauth2/core/oidc/OidcProviderMetadataClaimNames.java
Outdated
Show resolved
Hide resolved
...ework/security/oauth2/core/http/converter/OidcProviderConfigurationHttpMessageConverter.java
Outdated
Show resolved
Hide resolved
...pringframework/security/oauth2/server/authorization/web/OidcProviderConfigurationFilter.java
Outdated
Show resolved
Hide resolved
...pringframework/security/oauth2/server/authorization/web/OidcProviderConfigurationFilter.java
Outdated
Show resolved
Hide resolved
...n/java/org/springframework/security/oauth2/server/authorization/config/ProviderSettings.java
Outdated
Show resolved
Hide resolved
...n/java/org/springframework/security/oauth2/server/authorization/config/ProviderSettings.java
Outdated
Show resolved
Hide resolved
...pringframework/security/oauth2/server/authorization/web/OidcProviderConfigurationFilter.java
Outdated
Show resolved
Hide resolved
22e503e
to
64207e9
Compare
Hi from the Application SSO team. We had a team goal to implement a customizable Issuer URL - thanks for beating us to it! We noticed a few things with
Appendiceshttps://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
https://tools.ietf.org/html/rfc8414#section-2
|
Hi @joshuatcasey ! Glad to help. To your points, here are some of the discussions we had around these topics:
|
Thanks for the clarifications.
|
#145 will abstract JWT token creation behind |
Speaking as an application developer, I want to validate the user's configuration on application startup, so it makes sense that we would validate |
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.
Thanks for the updates @Kehrlann. Please see review comments.
.../main/java/org/springframework/security/oauth2/core/oidc/OidcProviderMetadataClaimNames.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/springframework/security/oauth2/core/oidc/OidcProviderConfiguration.java
Show resolved
Hide resolved
...n/java/org/springframework/security/oauth2/server/authorization/config/ProviderSettings.java
Outdated
Show resolved
Hide resolved
...otation/web/configurers/oauth2/server/authorization/OAuth2AuthorizationServerConfigurer.java
Outdated
Show resolved
Hide resolved
...mework/security/oauth2/server/authorization/web/OidcProviderConfigurationEndpointFilter.java
Outdated
Show resolved
Hide resolved
...nnotation/web/configurers/oauth2/server/authorization/OAuth2AuthorizationCodeGrantTests.java
Outdated
Show resolved
Hide resolved
...nnotation/web/configurers/oauth2/server/authorization/OAuth2ClientCredentialsGrantTests.java
Outdated
Show resolved
Hide resolved
...fig/annotation/web/configurers/oauth2/server/authorization/OAuth2RefreshTokenGrantTests.java
Outdated
Show resolved
Hide resolved
...onfig/annotation/web/configurers/oauth2/server/authorization/OAuth2TokenRevocationTests.java
Outdated
Show resolved
Hide resolved
...2-integration/authorizationserver/src/main/java/sample/config/AuthorizationServerConfig.java
Outdated
Show resolved
Hide resolved
Agreed. We will validate the application supplied configuration at startup and fail-fast on errors. I'm not sure where this will go at the moment but it very well might go in |
64207e9
to
6d5350d
Compare
- See https://openid.net/specs/openid-connect-discovery-1_0.html sections 3 and 4. - We introduce here a "ProviderSettings" construct to configure the authorization server, starting with endpoint paths (e.g. token endpoint, jwk set endpont, ...)
dbb743c
to
4a2ee31
Compare
Fixed suggestions and comments. Could you please take a look at |
Great work @Kehrlann ! This is now in master! |
sections 3 and 4.
the authorization server, starting with endpoint paths (e.g.
token endpoint, jwk set endpont, ...)
This will deliver #55