Class NoOpAuthorizationBackend

    • Constructor Detail

      • NoOpAuthorizationBackend

        public NoOpAuthorizationBackend​(org.elasticsearch.common.settings.Settings settings,
                                        Path configPath)
    • Method Detail

      • fillRoles

        public void fillRoles​(User user,
                              AuthCredentials authCreds)
        Description copied from interface: AuthorizationBackend
        Populate a User with backend roles. This method will not be called for cached users.

        Add them by calling either user.addRole() or user.addRoles()

        Specified by:
        fillRoles in interface AuthorizationBackend
        Parameters:
        user - The authenticated user to populate with backend roles, never null
        authCreds - Credentials to authenticate to the authorization backend, maybe null. This parameter is for future usage, currently always empty credentials are passed!