Class NoOpAuthorizationBackend

    • Constructor Detail

      • NoOpAuthorizationBackend

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

      • retrieveRoles

        public void retrieveRoles​(User user,
                                  AuthCredentials credentials,
                                  Consumer<Collection<String>> onSuccess,
                                  Consumer<Exception> onFailure)
        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:
        retrieveRoles in interface AuthorizationBackend
        Parameters:
        user - The authenticated user to populate with backend roles, never null
        credentials - Credentials to authenticate to the authorization backend, maybe null. This parameter is for future usage, currently always empty credentials are passed!