Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working since WP 4.4? #28

Closed
jordymeow opened this issue Jan 14, 2016 · 4 comments
Closed

Not working since WP 4.4? #28

jordymeow opened this issue Jan 14, 2016 · 4 comments

Comments

@jordymeow
Copy link

Hey guys,

Just wondering if this plugin is supposed to work with WP 4.4. Seems like it has not been updated for a while, one filter has changed and by trying to debug it I feel like it is not mean to work with the latest version of WP. I might be wrong but I want to make sure. Thanks!

@danielbachhuber
Copy link
Member

Just wondering if this plugin is supposed to work with WP 4.4.

Yep, it works fine for me. Can you share the issue you're experiencing?

@jordymeow
Copy link
Author

I don't use it now but basically I do this on every request:

$username = $_SERVER['PHP_AUTH_USER'];
$password = $_SERVER['PHP_AUTH_PW'];
$user = wp_authenticate( $username, $password );

And that works, I get my user and it is fine.

With the Basic Auth plugin, I know the code was slightly similar but by calling the get_current_user_id I could see that I was not properly authentified (0 was returned).

@danielbachhuber
Copy link
Member

Ok. Hard to say what the problem was with your environment.

@jordymeow
Copy link
Author

Yes I know :( It's simply a basic install of WordPress on my localhost using MAMP Pro, not sure why it wouldn't work but I can easily do the auth manually (per request) with the code above. It was for a quick test so I can't really spend too much time on this, was just curious if it was still supposed to work or not. I will close this as I didn't provide you any kind of debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants