Class PlatformUserDetailsService

java.lang.Object
org.odpi.openmetadata.userauthn.auth.PlatformUserDetailsService
All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService

@Service("userService") @ConditionalOnProperty(value="authentication.source", havingValue="platform") public class PlatformUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
PlatformUserDetails details service for the platform user repository. This is called during the logon process. It is responsible for retrieving details of the user's account from the user directory.
  • Constructor Details

    • PlatformUserDetailsService

      public PlatformUserDetailsService()
  • Method Details

    • loadUserByUsername

      public final PlatformUserDetails loadUserByUsername(String userId) throws org.springframework.security.core.userdetails.UsernameNotFoundException
      Retrieve the user account from the secrets store. This is called when a user requests a token.
      Specified by:
      loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
      Parameters:
      userId - calling user
      Returns:
      user details to check
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException - unrecognized user id