In the previous article here, i have implemented custom authentication such that Check if the user exist in local database user table and if the user exist, then authenticate it to external windows AD server. Upon successful call to login API, a session was created on server and session id…