@khalid.nouh You need to create a filter registration bean and provide an authentication provider like below: