-
Notifications
You must be signed in to change notification settings - Fork 840
Add Comments to Authentication Managers !minor #3608
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
Add Comments to Authentication Managers !minor #3608
Conversation
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.
Pull Request Overview
This PR adds comprehensive documentation comments to authentication managers to improve code maintainability and understanding. The changes focus on documenting the OAuth authentication flow, particularly around identity provider resolution, external group mapping, and attribute handling.
Key changes:
- Added detailed JavaDoc comments explaining the OAuth authentication flow and group mapping logic
- Improved variable naming for clarity in the authentication processing
- Enhanced documentation for identity provider configuration fields
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| ExternalOAuthAuthenticationManager.java | Added extensive JavaDoc comments for authentication flow methods and improved variable naming |
| ExternalLoginAuthenticationManager.java | Renamed method and added documentation for external group mapping functionality |
| ExternalIdentityProviderDefinition.java | Added JavaDoc comments for configuration fields related to group allowlisting and attribute mappings |
| AbstractExternalOAuthIdentityProviderDefinition.java | Added documentation for OAuth group mapping mode enumeration values |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...org/cloudfoundry/identity/uaa/authentication/manager/ExternalLoginAuthenticationManager.java
Show resolved
Hide resolved
...in/java/org/cloudfoundry/identity/uaa/provider/oauth/ExternalOAuthAuthenticationManager.java
Show resolved
Hide resolved
|
@adrianhoelzl-sap Can you explain why you want this change ? The documentation improvement is good, but I would rather see it in docs classes, e.g. And then all other see it , from code you can link them to it |
| protected List<SimpleGrantedAuthority> evaluateExternalGroupMappings(String origin, Collection<? extends GrantedAuthority> externalGroups) { | ||
| List<SimpleGrantedAuthority> result = new LinkedList<>(); | ||
| for (GrantedAuthority authority : authorities) { | ||
| for (GrantedAuthority authority : externalGroups) { |
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.
Was this a bug?
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.
No, I renamed the parameter. It is just not displayed in the diff properly here as I also added the javadoc comment.
…on.OAuthGroupMappingMode
63d315b to
63bc3e6
Compare
No description provided.