Skip to content

Commit

Permalink
EPMRPP-94552 || Add scim related user disable check
Browse files Browse the repository at this point in the history
  • Loading branch information
pbortnik committed Sep 16, 2024
1 parent 667b868 commit f51a739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies {
api 'com.epam.reportportal:commons-dao'
api 'com.epam.reportportal:commons'
} else {
api 'com.github.reportportal:commons-dao:4f0bff6'
api 'com.github.reportportal:commons-dao:f277576'
api 'com.github.reportportal:commons:50a1192'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public UserDetails loadUserByUsername(String username) throws UsernameNotFoundEx
.orElseThrow(() -> new UsernameNotFoundException("User not found"));

UserDetails userDetails = org.springframework.security.core.userdetails.User.builder()
.disabled(!user.isEnabled())
.username(user.getUsername())
.password(user.getPassword() == null ? "" : user.getPassword())
.authorities(AuthUtils.AS_AUTHORITIES.apply(user.getUserRole()))
Expand Down

0 comments on commit f51a739

Please sign in to comment.