Skip to content

Commit

Permalink
Merge pull request #1031 from NationalSecurityAgency/t#1030/pki_error
Browse files Browse the repository at this point in the history
PasswordManagementService bean is only available when in FormAuth
  • Loading branch information
sudo-may authored Dec 20, 2021
2 parents 89fa7e0 + b90d98a commit 7291ec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CreateAccountController {
@Value('#{"${skills.authorization.verifyEmailAddresses:false}"}')
Boolean verifyEmailAddresses

@Autowired
@Autowired(required = false) // not required for PKI_AUTH
PasswordManagementService passwordManagementService

@Conditional(SecurityMode.FormAuth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ package skills.services
import groovy.util.logging.Slf4j
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Conditional
import org.springframework.scheduling.annotation.Scheduled
import org.springframework.stereotype.Component
import skills.auth.SecurityMode

@Conditional(SecurityMode.FormAuth)
@Component
@Slf4j
class ScheduledUserTokenCleanup {
Expand Down

0 comments on commit 7291ec6

Please sign in to comment.