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

Feat/vic 1421 admin console set two factor authentication #493

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ private void addPath(String path, String arg, UriComponentsBuilder builder) {
public boolean isOtpAllowed(@NotNull Set<String> roles) {
return roles.contains(UserRole.USER.getValue()) && otpAllowedForUsers
|| roles.contains(UserRole.CONSULTANT.getValue()) && otpAllowedForConsultants
|| isMultitenancyEnabledAndOtpAllowed(roles);
}

private boolean isMultitenancyEnabledAndOtpAllowed(Set<String> roles) {
return multiTenancyEnabled && isAnyTenantAdminAndOtpIsAllowed(roles);
|| isAnyTenantAdminAndOtpIsAllowed(roles);
}

private boolean isAnyTenantAdminAndOtpIsAllowed(Set<String> roles) {
Expand Down