first implementation of AuthenticationFilter for REST Interface