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

Support Keycloak Organization Feature (PREVIEW) #351

Merged
merged 4 commits into from
Jun 10, 2024
Merged

Conversation

sventorben
Copy link
Owner

@sventorben sventorben commented Apr 20, 2024

This is just a rough draft - needs refactorings, testing, and documentation.

CONSIDER THIS TO BE A PREVIEW FEATURE WHICH MAY BE REMOVED WITHOUT WARNING!

Relates to #340

@sventorben sventorben added the enhancement New feature or request label Apr 20, 2024
@sventorben sventorben self-assigned this Apr 20, 2024
Base automatically changed from discoverer-spi to main May 15, 2024 21:06
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

Comment on lines +51 to +52
if (EMAIL_ATTRIBUTE.equalsIgnoreCase(config.userAttribute()) && !user.isEmailVerified()
&& !config.forwardUserWithUnverifiedEmail()) {

Choose a reason for hiding this comment

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

❌ New issue: Complex Conditional
discoverForUser has 1 complex conditionals with 2 branches, threshold = 2

Suppress

Comment on lines +51 to +57
if (EMAIL_ATTRIBUTE.equalsIgnoreCase(config.userAttribute()) && !user.isEmailVerified()
&& !config.forwardUserWithUnverifiedEmail()) {
LOG.warnf("Email address of user '%s' is not verified and forwarding not enabled", user.getId());
emailDomain = Optional.empty();
} else {
emailDomain = domainExtractor.extractFrom(user);
}

Choose a reason for hiding this comment

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

❌ New issue: Bumpy Road Ahead
discoverForUser has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is one single, nested block per function

Suppress

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

@sventorben sventorben marked this pull request as ready for review June 10, 2024 16:57
@sventorben sventorben changed the title Support Keycloak Organization Feature Support Keycloak Organization Feature (PREVIEW) Jun 10, 2024
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅

View detailed results in CodeScene

@sventorben sventorben merged commit 35fd254 into main Jun 10, 2024
7 of 8 checks passed
@sventorben sventorben deleted the orgs_support branch June 10, 2024 17:07
@sventorben sventorben added the ignore-for-release Not included in release notes label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ignore-for-release Not included in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant