It is possible to log in by reading data from an external database?
Yes. You can create authentication streams that intercept login and check information against any other system before allowing/denying access. If the access is read-only and does not involve the Dashboard, it can even be done directly with the external BD.
You can log in and use all CMS features such as
administrator/editor etc without mirroring a minimum of information about the
user in WP database?
Theoretically yes, but understand the costs before you start In the use of CMS there are several permission "checks" that are made when accessing a page or trying to save certain information. These "checks" depend on the existence of basic information about each user in the format that Wordpress expects.
The most important are the checking of roles and capacities specific to each screen and these inlets must be in the WP seat.
If you want to explore this possibility, start by creating a function called wp_get_current_user()
. When creating a function with this name, WP will now use its function to fetch the data of a user, in place to this.
Depending on your case, the right logic attached to the Hooks determine_current_user
and user_has_cap
may be sufficient.
If it’s not, maybe you’ll have to recreate too get_userdata()
and some others.
In my case I have a wordpress site and a system in php both on the same server, there would be some plugin that makes this connection with the system users made php with wordpress login?
– Fernando Pinhel