miled / wordpress-social-login

WordPress Social Login
http://miled.github.io/wordpress-social-login/
MIT License
399 stars 235 forks source link

WSL end-points working but giving false positive in WSL Diagnostics #332

Closed jimi008 closed 3 years ago

jimi008 commented 4 years ago

10-15-2019 11-03-21 AM

In WSL version 3.0.1 when diagnostics page checked its shows 'WSL end-points' as 'FAIL' and throw 404 error in the console but they work fine while testing social network signup or signin. After debugging I found that the URL for WSL end-point to test in diagnostics has some issue.

e.g see screenshot above for 404 URL wp-content/plugins/wordpress-social-login/hybridauth/callbacks/.php?url=http%3A%2F%2Fexample.com

It should be

/wp-content/plugins/wordpress-social-login/hybridauth/?test=http://example.com

Code below is changing the URL and also giving 403 forbidden error while testing the end-point

https://github.com/miled/wordpress-social-login/blob/74d4ef9edbdb3d021dfcff921bf7a116d769d326/hybridauth/index.php#L24-L40

Commenting these lines fix the issue and WSL end-points test now Pass

jimi008 commented 4 years ago

Similar Issue https://github.com/miled/wordpress-social-login/issues/321#issue-449288451

@miled