[wp-trac] [WordPress Trac] #29594: Basic Cookie Authentication from External Database
WordPress Trac
noreply at wordpress.org
Tue Sep 23 19:27:55 UTC 2014
#29594: Basic Cookie Authentication from External Database
-----------------------------+------------------------------
Reporter: LPH2005 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 4.0
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by kburkhardt):
I can confirm that I also have this exact problem with an internal
authentication plugin.
Users are logged in as expected with the appropriate roles, but are no
longer able to make changes. It's been things like changing user roles,
enabling plugins and disabling plugins. I've been pouring through the
code looking for what has been changed without much luck so far.
The core of the code that has been working until now is below: (uid is an
internal number we have added to usermeta)
{{{
$user = get_user_by('uid', $uidHeader);
wp_set_current_user( $user->ID );
wp_set_auth_cookie( $user->ID , 1);
}}}
There seems to be something new required in the mix now that I have been
unable to find documentation for.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29594#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list