I am looking for a way to install an external authentication server that will work on many / most wireless routers. Or, alternatively, several ways to work on different wireless routers. This must be done programmatically, which means that the computer connected to the router should be able to use some api, perhaps for this. I don’t know if this is possible, I tried to find answers on Google, but with limited knowledge, I’m not sure what I’m even looking in the right place.
What I'm trying to achieve: I'm trying to create an application that will allow people to open WIFI there so that other people can borrow it.
Idea:
Borrowed wifis: Create an account in the application. Log in to the app. This application, when you log in, will automatically connect to Wi-Fi next to the shared one. Access to wifi will be available only if you have a valid combination of username and password with the application
To share your Wi-Fi: From the same application, you go to some menu and click "share this Wi-Fi", and somehow I need this to configure the currently connected router to use an external authentication server, as well as the current WIFI key. In this way, people can essentially use their username-password application command to enter this router.
Any help is appreciated.