I have a bunch of APIs written based on oauth 2.0. In my system, all user accounts are currently stored in MySQL DB. Now I want to integrate LDAP into this system to check users via LDAP instead of connecting to the MySQL database. So I integrated PHP-LDAP and LDAP into my system. but now my problem is
- If the LDAP administrator deletes a user from the LDAP directory, I can not notify my web application that this user has been deleted.
- Is there a way to integrate OAuth 2.0 directly into LDAP and to validate the user when a new access token with a refresh token is issued [after the access token expiration]?
If someone has an idea, please clarify me.