How to make an other web app can login with wordpress authentication?

WordPress is not a platform for SSO, and do not include any API to support such a use case. You can develop a JSON end point to validate users, but the work flow you describe will probably not match it.