Skip to content

Commit

Permalink
Merge pull request #337 from reportportal/EPMRPP-89095
Browse files Browse the repository at this point in the history
EPMRPP-94552 || Add scim related user disable check
  • Loading branch information
pbortnik committed Sep 16, 2024
2 parents 667b868 + 33320b7 commit e5d8b7d
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:cce9625'
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 e5d8b7d

Please sign in to comment.