-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Consider renaming ProviderSettings to something more specific and enhance javadoc #681
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
Comments
@asaikali I did originally consider You will notice It was difficult to come up with a name to accomodate both OAuth2 and OIDC settings, so the end result was a generic name I could potentially introduce a hierarchy If we improved the javadoc, would this help? Any other suggestions? |
I think improving the Javadoc helps for sure. When I see How about:
|
@asaikali I tried out a few different names for Closing this as a duplicate in favour of gh-864. |
The
ProviderSettings
classspring-authorization-server/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/config/ProviderSettings.java
Line 31 in 718b86c
does not give any clues about its purpose. The word provider is too generic and raises questions about exactly is being provided.
ProviderSettings
extends fromAbstractSettings
which again does not provide hints on what this for, beyond it is just something to hold settings. TheClientSettings
andTokenSettings
extendAbstractSettings
and it is much clearer from the name what they do.I suggest that the
ProviderSettings
should be renamed toAuthorizationServerSettings
to clearly explain its purpose and make it easy for users to know what is is used for.The text was updated successfully, but these errors were encountered: