Skip to content
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

BE: Chore: Fix OauthAuthorityExtractor logging #3900

Closed
wants to merge 2 commits into from

Conversation

Haarolean
Copy link
Contributor

  • Breaking change? (if so, please describe the impact and migration path for existing application instances)

What changes did you make? (Give an overview)

Is there anything you'd like reviewers to focus on?

How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)

  • No need to
  • Manually (please, describe, if necessary)
  • Unit checks
  • Integration checks
  • Covered by existing automation

Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
  • My changes generate no new warnings (e.g. Sonar is happy)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

Check out Contributing and Code of Conduct

A picture of a cute animal (not mandatory but encouraged)

@Haarolean Haarolean added scope/backend type/chore Boring stuff, could be refactoring or tech debt area/rbac labels Jun 2, 2023
@Haarolean Haarolean added this to the 0.8 milestone Jun 2, 2023
@Haarolean Haarolean requested a review from a team as a code owner June 2, 2023 12:25
@Haarolean Haarolean self-assigned this Jun 2, 2023
@@ -72,16 +72,15 @@ public Mono<Set<String>> extract(AccessControlService acs, Object value, Map<Str
var principalRoles = convertRoles(principal.getAttribute(rolesFieldName));
var roleMatched = principalRoles.contains(roleName);

if (roleMatched) {
log.debug("Assigning role [{}] to user [{}]", roleName, principal.getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should log both cases

@Haarolean Haarolean removed their assignment Sep 24, 2023
@Haarolean Haarolean closed this Jan 19, 2024
@germanosin germanosin deleted the chore/fix-logging branch January 20, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rbac scope/backend type/chore Boring stuff, could be refactoring or tech debt
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants