Interface UserInfoHandler


  • public interface UserInfoHandler
    This API needs to be implemented if someone is willing to extend the behaviour of the tenant to user mapping.
    • Method Detail

      • getTenantAwareUsername

        String getTenantAwareUsername​(String username)
        Need to return tenant aware username for the username provided eg: if the actual username with tenant is: foo@email.com@bar, and user belongs to tenant: bar.com tenant aware username: foo@email.com
        Parameters:
        username - - Username
        Returns:
        - Tenant aware username
      • getTenantDomain

        String getTenantDomain​(String username)
        Return the domain of the given user
        Parameters:
        username - - UserName
        Returns:
        - Tenant Domain