Cannot use Azure ID auth


We have rancher 2.6.9 with local and AD auth implemented. I am trying to enable AzureAD auth by following official Rancher documentation. Always I get stuck when trying to complete the setup. The redirect url always ends with http 404. Below is the url I got at the redirect ( I maskeraded sensitive info)