I have an ASP.NET MVC 4.8 project where we use jQuery for autocomplete textbox. This app is using Azure AD authentication / Microsoft identity.
In the app there is a page which has the AutoComplete textbox. It works fine. However, after Authentication is expired and if user enter anything in the AutoComplete textbox, the Text box become unresponsive. Unlike any other button or links which navigate user to login page.
I checked and debug the code. After the authentication token expires and when user enter the value in the textbox, the call goes to controller's constructor and from there I don't seem to find what happen next. I don't see any error or anything.
[Authorize]
filter is there but it doesn't get hit or having base controller but they hit after constructor initialization.
So how I can take care of the situation. I want user to be redirected to Sign In page. Note that, I am using Microsoft.Identity (Azure AD authentication) which takes care of redirection automatically. I suppose user should redirect to login page as it happens when clicking on other controls. But I think since I am using AutoComplete text box from Telerik and another one based on jQuery the check for Authentication bypass and user do not get redirected.