Skip to content

Conversation

@mis306lu
Copy link

The use case for the 'both' configuration is multiple tenants on one cluster preferring different login strategies.

I tested this on nolana and orchid bugfest using 'both', 'full', 'key' and no configuration (default).

I did consult with Adam after my original pull request. He suggested the 'both' option. It leaves the full and key options as they were so hosts can restrict to one or the other when needed.

@mis306lu
Copy link
Author

@dcrossleyau - Do you have any objection to me creating a version with this change? (v1.0.7) thank you!

@dcrossleyau
Copy link
Contributor

I do not know, sorry.

@mis306lu
Copy link
Author

@adamdickmeiss , @wafschneider - any objection to me creating a version with this change? thank you!

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

91.7% 91.7% Coverage
0.0% 0.0% Duplication

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 1, 2024

@sonarqubecloud
Copy link

if (loginStrategyType == LoginStrategyType.both) {
if (connexionRequest.getLocalUser() != null && connexionRequest.getLocalUser().strip()
.contains(" ")) {
loginStrategyType = LoginStrategyType.valueOf("full");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
loginStrategyType = LoginStrategyType.valueOf("full");
loginStrategyType = LoginStrategyType.full;

.contains(" ")) {
loginStrategyType = LoginStrategyType.valueOf("full");
} else {
loginStrategyType = LoginStrategyType.valueOf("key");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
loginStrategyType = LoginStrategyType.valueOf("key");
loginStrategyType = LoginStrategyType.key;

@sonarqubecloud
Copy link

2 similar comments
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants