How to build custom authentication for admin login and registration

System Information
  • Strapi Version: 4.24.2
  • Operating System: Windows 11 Pro
  • Database: sqlite
  • Node Version: 20.12.1
  • NPM Version: 10.5.0
  • Yarn Version: NA

Hi I’m new to Strapi(V4). We have a requirement to build a custom authentication for Admin. We need to authenticate against other website(other database) that we have.

Is it possible? If so please provide the steps to do it.

I tried to override admin/login using strapi.admin.controllers.authentication.login, is it the right approach?